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 / Stretching an image

Author
Message
Darkelf0
18
Years of Service
User Offline
Joined: 31st Oct 2005
Location:
Posted: 1st Nov 2005 01:51
Hey. I have a quick query. I have an image, and i have loaded it into my screen, but it does not stretch for the full screen, because i want this to become my background, how do I make the image full screen?

Thanks
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 1st Nov 2005 12:00
2 methods:

1. PASTE IMAGE to a new bitmap of the same size as the image. Then COPY BITMAP to another bitmap, with the original size and new size as parameters.

2. Make a sprite from the image, and SCALE SPRITE

The best way is to have an image that is the correct size to start with. Dark Basic is not a graphics editor, so it won't use any complex algorithms to make a stunning job of scaling the image.

Login to post a reply

Server time is: 2024-09-24 07:23:46
Your offset time is: 2024-09-24 07:23:46