Image Enlargement (With or Without Blur)

3 replies [Last post]
User offline. Last seen 5 years 47 weeks ago. Offline
Joined: 11 Nov 2012

Hi, everyone.

In another thread, the user "Lava Level" mentioned that images are automatically anti-aliased (blurred slightly) when they are enlarged for iPad (from an iPhone-sized version).

He/She wishes they weren't.

I just wanted to state that I agree. It would be desirable to have the choice of "blur" or "no blur". There are certain kinds of images that need to remain crisp when enlarged.


"Lava Level" wrote:

"When you scale a pixel graphic it ALWAYS bilinear filters it or blurs it to the nearest edge neighbor. This is why my game looks blurry on an iPad. The solution I was given was to @2 times my graphics.... :( @2 Times PIXEL GRAPHICS?
Now they have it UP FOR VOTE. But most of the community doesn't get it so I don't expect it to come until maybe next year."


User offline. Last seen 28 weeks 6 days ago. Offline
Joined: 10 May 2011

Corona Labs have already addressed this issue with CoronaSDK 2013.1031.

Graphics: Add ability to specify GL_LINEAR and GL_NEAREST via display.setDefault( key, value ). Keys are "magTextureFilter" and "minTextureFilter". Values are "linear" and "nearest". Once you change the default, a* call will use the new default. However, you cannot change the texture's filter, once the image has been loaded the first time. If you use the image in other display objects, it will use the filter default from the first time the image was loaded.

User offline. Last seen 5 years 47 weeks ago. Offline
Joined: 11 Nov 2012

Thank you, BrightWaveGames.

User offline. Last seen 1 year 14 weeks ago. Offline
Joined: 14 Apr 2010

This is interesting, and first time I heard about this feature. Is there any performance hit or increase with either method?

Viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.