Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Help with bitmap size please

Author
Message
Orac
18
Years of Service
User Offline
Joined: 16th May 2006
Location: Billingham
Posted: 10th Jun 2008 14:44
Hi All,

I'm having a bit of trouble determining the size of a bitmap. In the following code snippet, the bitmap I'm loading is 32x32 pixels but when I run the code, the reported size is 640x480 (screen size set up previously. Obviously I'm not quite understanding what is going on. Can anyone explain please?

Orac
18
Years of Service
User Offline
Joined: 16th May 2006
Location: Billingham
Posted: 10th Jun 2008 17:33
Thanks for that. I looked in the help file and couldn't find the IMAGE WIDTH/HEIGHT commands.
pcRaider
17
Years of Service
User Offline
Joined: 30th May 2007
Location:
Posted: 11th Jun 2008 06:02
Try this
Orac
18
Years of Service
User Offline
Joined: 16th May 2006
Location: Billingham
Posted: 11th Jun 2008 10:53
@WindowsKiller - the IMAGE WIDTH/HEIGHT commands aren't documented but they do work as you suggested. Interestingly, the IDE doesn't highlight them either as though they are not recognised as valid commands. Are these two commands relatively new?

@pcRaider - I tried your code snippet and it works fine except that I couldn't see the image I'd loaded. That set me off experimenting a bit and I think I may be starting to understand. Correct me if I'm wrong but the help file says you can load a bitmap with a number from 0-32. I'm assuming bitmap 0 is the screen you can actually see and so the other 32 bitmaps are like 'virtual' screens which you can swop into view with SET CURREENT BITMAP 0
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 11th Jun 2008 14:44 Edited at: 11th Jun 2008 14:44
@Orac,

The command are there but as you found out they don,t turn blue and no help file, but I think there something on them in the file update in the bug forum, in 5.5 to 6.0, take a look.

Dark Physics makes any hot drink go cold.
pcRaider
17
Years of Service
User Offline
Joined: 30th May 2007
Location:
Posted: 11th Jun 2008 16:49
Orac
Yes, that right.
BitMap 0 is a special value, and it is screen itself.
SET CURRENT BITMAP 0
When I let a screen display it, I use this.
It may be complicated to understand.


A BitMap command is an outdated old command.

Login to post a reply

Server time is: 2024-09-27 16:25:23
Your offset time is: 2024-09-27 16:25:23