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
Legends
14
Years of Service
User Offline
Joined: 31st Jul 2011
Location:
Posted: 24th Sep 2011 11:24
How can i scale image in darkbasic?
Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 24th Sep 2011 12:14
Images cant be scaled, but sprites can with the 'Scale Sprite' or 'size sprite' commands.

My signature is NOT a moderator plaything! Stop changing it!
darkvee
20
Years of Service
User Offline
Joined: 18th Nov 2005
Location:
Posted: 29th Sep 2011 14:23 Edited at: 29th Sep 2011 14:24
Hi Legends's
How's it going. Hi Mobiius you can indeed scale images without sprites. You have to use a bitmap though. Here is a demo I just cooked up. It shows the image scaling. Just replace "myimage.bmp" with your own bitmap file.

Here is the code. Enjoy


darkvee

Login to post a reply

Server time is: 2026-07-10 09:57:18
Your offset time is: 2026-07-10 09:57:18