Resize
BlitzPlus Forums/BlitzPlus Programming/Resize
| ||
Can anyone think of a good way of storing pictures in their normal size, but shrinking or enlarging them as they are drawn in blitz 2d? |
| ||
Not that I know of. The 2D functions basically blit rectangles (or sub-rectangles). To do scaling, you need to move to 3D and use sprites. Unless I missed something in the docs ... |
| ||
Write your own shrinking/enlarging algorithm if necessary. It's not tough. |
| ||
Hi Folks, Why not use ScaleImage image,x,y ? Later, Jes |
| ||
Slooooooooooooooooooooow, that's why. Certainly you don't want to be doing that in a normal render cycle, but only pre-scaling the images and storing them. |
| ||
I've got some code by someone else that's dead fast (rotate and scale). If I forget to post here later, just mail me! |