Rescaling an Image
BlitzMax Forums/BlitzMax Beginners Area/Rescaling an Image
| ||
I am making a tile game, and I want to rescale all my tiles to 24 by 24 pixels. tile:TImage = loadImage(path) Now I need to rescale tile so that it is 24 by 24 pixels, but I dont know how. I would prefer not to setscale(x,y) every time i draw it. Thanks, Will. |
| ||
Images are loaded straight to the graphics card in BlitzMax, so to scale you need to use the memory based Pixmap objects which Images can then be created from: img=LoadImage(ResizePixmap(LoadPixmap("blitzmax.png"),24,24)) |
| ||
Thanks very much, thats just what I needed. |