scaling an image according to screen resolution

Blitz3D Forums/Blitz3D Beginners Area/scaling an image according to screen resolution

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Assuming your images were originally designed to work on a 800x600 resolution and you are keeping the same aspect ratio .. e.g. 4:3 then something like this ..

Scale# = GraphicsWidth() / 800.0

then

scaleimage Image, Scale , Scale

or

resiseimage Image, ImageWidth(image) * Scale , ImageHeight(image) * Scale