Resizing and Freeing Images

BlitzMax Forums/BlitzMax Beginners Area/Resizing and Freeing Images

images are stored in the videoram on your actual video card.

you can -draw- them are a different size by changing the scale with SetScale, but the only way to truly resize the image bitmap itself is by copying it back into regular RAM, resize it, and abck to video ram: by converting to a pixmap, resize it, and back to an image when you're done.

You can release an image though:

myimg:timage=loadimage("whatever.jpg")
myimg:timage=null ' mark for deletion
flushmem ' remove unused objects from memory