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.

2D All the way! / Load Bitmap

Author
Message
Magic Marker
20
Years of Service
User Offline
Joined: 17th Nov 2005
Location:
Posted: 20th Nov 2005 12:41
Am I mising something here?

This Code:
load bitmap "media\Splash.bmp"
print "Hello"

Works. The Bitmap is loaded and displayed on screen.
The word hello appears on top of the Image.

This Code:
load bitmap "media\Splash.bmp", 1
print "Hello"

Doesn't seem to work. I get a blank screen.
My understanding is that the image would be stored in memory
using 1 as an identifier. I can't see why my print statement
doesn't work though.

Any thoughts?

-MM
Bush Baby
21
Years of Service
User Offline
Joined: 23rd Apr 2005
Location: A cave beneath Jerusalem
Posted: 20th Nov 2005 20:13
Try this:




We will take over the world!
Let our reign begin, CHARGE BUSH BABIES!
Grog Grueslayer
Valued Member
21
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 20th Nov 2005 21:42
Quote: "This Code:
load bitmap "media\Splash.bmp", 1
print "Hello"

Doesn't seem to work. I get a blank screen.
My understanding is that the image would be stored in memory
using 1 as an identifier. I can't see why my print statement
doesn't work though.

Any thoughts?
"


It's because when you don't specify which bitmap number to use it automatically thinks you want it as bitmap 0. Bitmap 0 is the screen. It's made that way so you can do things on another screen (bitmaps 1 to 32) without the user seeing the changes ... then when your done manipulating the bitmap you can copy it to bitmap 0 to show the changes to the user.
Magic Marker
20
Years of Service
User Offline
Joined: 17th Nov 2005
Location:
Posted: 21st Nov 2005 11:46
Sorry I didn't make the problem I was having clear.

I'm trying to load the Bitmap into Memory (not display it).
But be able to use the Print Command.

I'm finding that if I specify a Bitmap number e.g. 1 in the example I posted, then I can't use Print, I just get a blank screen.

If I do a straight forward Load Bitmap without specifying a number, my print command works.

Any idea why I can't print to the screen after Load Bitmap specifying a Bitmap Number?

-MM

Login to post a reply

Server time is: 2026-07-07 09:51:59
Your offset time is: 2026-07-07 09:51:59