Better scaling

BlitzMax Forums/BlitzMax Programming/Better scaling

Twinprogrammer(Posted 2013) [#1]
Hey all,

I was wondering if there was a better way to scale images, because the SetScale makes the images blurred.


GfK(Posted 2013) [#2]
Scaling up or down?

Read up on the Flags parameter for Loadimage. That lets you enable/disable per-image filtering, which will probably get you the result you're looking for.


Twinprogrammer(Posted 2013) [#3]
Ok, thanks for your help!


Russell(Posted 2013) [#4]
Yeah, and remember that scaling up is pretty much guaranteed to add at least a little blur. This applies to bitmapped images only, as vector drawings (such as would be used with Cairo and similar libraries) are 're-calculated' as they are scaled up. Because of this, they do tend to be MUCH slower to draw, unless they are converted to bitmaps after the initial conversion (Everytime it is re-sized, however, it has to be converted to a bitmap again).

Toodles.

Russell