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 / Bitmap Question

Author
Message
Squids Revenge
20
Years of Service
User Offline
Joined: 19th Jul 2004
Location: Washington
Posted: 6th May 2005 10:03
Hi,
I am wondering how you can center bitmaps at the top of the screen.
Thanks,
Squids.

Your signature has been erased by a mod because it's larger than 600x120...
BF game programmer
19
Years of Service
User Offline
Joined: 22nd Jan 2005
Location: hoover alabama
Posted: 6th May 2005 10:33
i guess that depends on the size of the bitmap but i dont know all of the commands yet but you could look for something in the healp files called center bitmap or something! if not then see if theres a poaition bitmap (i think there is) then just set the x and y 200 or something!

james bond rules
Squids Revenge
20
Years of Service
User Offline
Joined: 19th Jul 2004
Location: Washington
Posted: 6th May 2005 10:43
Oh, ok!
Thanks!

Your signature has been erased by a mod because it's larger than 600x120...
NanoBrain
19
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Portland, OR
Posted: 6th May 2005 12:27 Edited at: 6th May 2005 12:28
OSquids RevengeO,

Are you speaking of centering a visible image at the top of the screen? If so, use this simple formula applied to the x coordinate of the image:

x = (screen width - image width) / 2

And, of course, the y coordinate will be a value of 0.


+NanoBrain+
Squids Revenge
20
Years of Service
User Offline
Joined: 19th Jul 2004
Location: Washington
Posted: 6th May 2005 12:30
Yes, that is exactly what I meant!
Thanks NanoBrain!
Squids.

Your signature has been erased by a mod because it's larger than 600x120...

Login to post a reply

Server time is: 2024-09-23 19:35:15
Your offset time is: 2024-09-23 19:35:15