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 / bimtap covering only part of the screen

Author
Message
Daygamer
14
Years of Service
User Offline
Joined: 16th Mar 2010
Location: United States
Posted: 2nd Aug 2010 20:34
hi all,

I'm trying to add some atmosphere to my stock market program by loading a picture of a real stock market. I've got one I like but it's only 410,313 pixes and doesn't cover my 640,480 screen.

I've tried to use different commands like CREATE BITAMP and BITMAP HEIGHT(), but I haven't gotten anywhere.

I'm sure there's a very easy way to do it. thanks for the help!

Coding is just better with music (preferably Owl City!)
Have a nice day, God Bless You!
Indicium
16
Years of Service
User Offline
Joined: 26th May 2008
Location:
Posted: 2nd Aug 2010 22:19




Daygamer
14
Years of Service
User Offline
Joined: 16th Mar 2010
Location: United States
Posted: 3rd Aug 2010 01:47
thanks for the code, it code looks great. I'll try plugging it in when I get the chance.

Coding is just better with music (preferably Owl City!)
Have a nice day, God Bless You!
Daygamer
14
Years of Service
User Offline
Joined: 16th Mar 2010
Location: United States
Posted: 4th Aug 2010 15:51
hey, sorry this response is so late, but I'm now having trouble getting my text to show up on top of my bitmap.

I think I have isolated my problem in this code:



I would like the text to show up on top of the sprite.

Coding is just better with music (preferably Owl City!)
Have a nice day, God Bless You!
Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 4th Aug 2010 19:09 Edited at: 4th Aug 2010 19:10
Think of sprites as hovering over the screen. Any 2D drawing or text commands will always be under the sprites. For text to be shown above a sprite you can use HIDE SPRITE so it's not seen and PASTE SPRITE to stamp the sprite on the screen.



But really it's better for backgrounds to just make the resolution of your image bigger with a drawing program (like Paint Shop Pro) and just use PASTE IMAGE instead.



And you should use .png instead of .bmp so you can use transparencies.

Daygamer
14
Years of Service
User Offline
Joined: 16th Mar 2010
Location: United States
Posted: 4th Aug 2010 23:21
Thanks for all the help, Grog Grueslayer. That code was very helpful. I'm starting to get it.

Coding is just better with music (preferably Owl City!)
Have a nice day, God Bless You!
Libervurto
18
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 5th Aug 2010 12:49
If you load it as a bitmap you can then stretch it to cover the screen.

load bitmap "stockmarket.bmp",1
copy bitmap 1,0,0,410,313,0,0,0,screen width()-1,screen height()-1

Not worth putting in a code box

Daygamer
14
Years of Service
User Offline
Joined: 16th Mar 2010
Location: United States
Posted: 5th Aug 2010 16:02
Oh cool. I'll keep that in mind.

Coding is just better with music (preferably Owl City!)
Have a nice day, God Bless You!

Login to post a reply

Server time is: 2024-11-23 10:47:21
Your offset time is: 2024-11-23 10:47:21