Scaling without blurring pixel art?

Hello all,

Is it possible to use object:scale( x, y ) without blurring the art? Is there an extra options like in paint.net where I can choose to scale with nearest neighbour or best quality algorithm?

If there isn’t any way to change the scaling algorithm, is there a better way to scale pixel art without blurring it?

P.S. I also tried turning off antialias under config file, but scaling still blurs the object…

Thanks!

  • Jeffrey Quek

Nearest neighbour rendering is available:

display.setDefault( key, value )

Keys are “magTextureFilter” and “minTextureFilter”. Values are “linear” and “nearest”.

http://docs.coronalabs.com/api/library/display/setDefault.html

Thank you so much! This works perfectly!

Nearest neighbour rendering is available:

display.setDefault( key, value )

Keys are “magTextureFilter” and “minTextureFilter”. Values are “linear” and “nearest”.

http://docs.coronalabs.com/api/library/display/setDefault.html

Thank you so much! This works perfectly!