Resize

BlitzPlus Forums/BlitzPlus Programming/Resize

injeevious(Posted 2003) [#1]
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?


Warren(Posted 2003) [#2]
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 ...


WolRon(Posted 2003) [#3]
Write your own shrinking/enlarging algorithm if necessary. It's not tough.


SoggyP(Posted 2003) [#4]
Hi Folks,

Why not use ScaleImage image,x,y ?

Later,

Jes


Dr Derek Doctors(Posted 2003) [#5]
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.


BlitzSupport(Posted 2003) [#6]
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!