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.

DarkBASIC Discussion / Loading Image Problem

Author
Message
Clbembry
19
Years of Service
User Offline
Joined: 10th Dec 2006
Location: Minnesota
Posted: 10th Feb 2007 17:25
Hey everyone,
How come when I us the load bitmap function, when I execute the program the screen is black and does nothing?
Grog Grueslayer
Valued Member
21
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 10th Feb 2007 21:42
It's the way your loading it. With "load bitmap" if you add a ",bitmapnumber" you change the working screen to that bitmap number. The only screen thats visible by the user is bitmap 0 (which is the screen you start on). You can change back to bitmap 0 with "set current bitmap 0"

"Load bitmap" is best used if you want to grab many images from the bitmap (with "get image") or if you want to manipulate the image before the user sees the results.

If your just loading a single image its better to use "load image" which is both "load bitmap" and "get image" in a single command... it also gets rid of the need to change back to bitmap 0.

Clbembry
19
Years of Service
User Offline
Joined: 10th Dec 2006
Location: Minnesota
Posted: 10th Feb 2007 22:55
Ok thanks!

Login to post a reply

Server time is: 2026-07-07 03:45:41
Your offset time is: 2026-07-07 03:45:41