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.

Author
Message
T0k1
23
Years of Service
User Offline
Joined: 16th Nov 2002
Location:
Posted: 4th Apr 2003 17:06
I greet warmly, I have problem with displaying individual bitmap, here my code:



and I would like to display on-screen the bitmape of No.. 1
how do to make this?

p.s. I apologize for my ignorance there now I am novice in DBPRO
i`thanks for help
I apologize for my weak English
Richard Davey
Retired Moderator
24
Years of Service
User Offline
Joined: 30th Apr 2002
Location: On the Jupiter Probe
Posted: 4th Apr 2003 18:18 Edited at: 4th Apr 2003 19:29
Two ways. First like this:



Or (this is a better way):



Cheers,

Rich

"Gentlemen, we are about to short-circuit the Universe!"
DB Team / Atari ST / DarkForge / Retro Gaming
heartbone
23
Years of Service
User Offline
Joined: 9th Nov 2002
Location:
Posted: 4th Apr 2003 18:42
Rich I just learned something form your first snippet.

I didn't know that one could display a bitmap simply by
executing the Set Current Bitmap command!

The more you see, the more you know.
The more you know, the more you see.
Andy Igoe
23
Years of Service
User Offline
Joined: 6th Oct 2002
Location: United Kingdom
Posted: 4th Apr 2003 19:13
Hehe Rich, DOH!

A third option, or second working option, is to load the bitmap onto bitmap zero such as this:



This method will not replace the bitmap when other 2D commands draw over it but involves no cpu time once it is displayed.

So if you are drawing stuff that moves to the screen, uses Rich's second example - but if this is displayed and left on screen - use my example.

As for Rich's first example, err.... that's one for the hall of fame

Pneumatic Dryll, Outrageous epic cleric of EQ/Xev
God made the world in 7 days, but we're still waiting for the patch.
Richard Davey
Retired Moderator
24
Years of Service
User Offline
Joined: 30th Apr 2002
Location: On the Jupiter Probe
Posted: 4th Apr 2003 19:33
Hurm, hall of shame even. It's meant to be "copy bitmap 1,0" instead of set current, but I changed it now.

Why are you using "load bitmap x.bmp,0" btw? 0 is the default.

Cheers,

Rich

"Gentlemen, we are about to short-circuit the Universe!"
DB Team / Atari ST / DarkForge / Retro Gaming
T0k1
23
Years of Service
User Offline
Joined: 16th Nov 2002
Location:
Posted: 4th Apr 2003 19:53
Thanx all for help
With Patch 4 nothing change (black screen), i`install patch 3.1 and it`s work, strange.

Bye

Login to post a reply

Server time is: 2026-07-11 08:46:55
Your offset time is: 2026-07-11 08:46:55