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 Professional Discussion / how to shrink down bitmaps to fit my screen

Author
Message
Allcreator007
11
Years of Service
User Offline
Joined: 28th Oct 2013
Location:
Posted: 23rd Jan 2014 19:00
ok so I have a quiz game and for the title screen I have loaded a bitmap, but it is extremely zoomed in, I was wondering on how I would scale the picture to fit the screen.

richard G
ShellfishGames
12
Years of Service
User Offline
Joined: 6th Feb 2013
Location:
Posted: 23rd Jan 2014 21:01
Open it in Paint or any other image editing software, select the "Change Size" option (in paint CTRL+W or CTRL+H as far as I know) and scale it to the required size.

If you want to do it right in the code, you should probably use sprites. You'd have to load the image as image then (load image, not load bitmap) and make a sprite from that image. Size sprite or Scale sprite do the job.

Green Gandalf
VIP Member
20
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 27th Jan 2014 14:26
If you just want to texture the background for a title screen then you can do something like this:



The image is automatically scaled to fit the screen (sample 2048x2048 image attached).



Powered by Free Banners

Attachments

Login to view attachments

Login to post a reply

Server time is: 2025-05-15 19:43:03
Your offset time is: 2025-05-15 19:43:03