Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Texture scaling quality vs. Native Android scaling
Started by inmatrix Jan 22 2019 10:23 AM

No replies to this topic
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

inmatrix

[GLOBAL: userInfoPane.html]
inmatrix
  • Observer

  • 1 posts
  • Corona SDK

I'm new to corona, but not new to Android development.

 

When developing natively, I would use "createScaledBitmap" to perform a high quality bitmap down-scaling to device-resolution and then cache the resulting bitmap for later runs so performance isn't impacted.  This approach is recommended by google:

 

There was not a lot of information about the scaler used by Corona, but from very initial testing, it seems to be unfiltered bilinear, while I was hoping to reach Bicubic/Lanczos scaling quality.

 

My question is two-fold:

 

1. Is it possible to setup the scaler quality to use a better than default quality algorithm?

2. Can I access Android's "createScaledBitmap" from corona (there is also a comparable function in Windows)?




[topic_controls]
[/topic_controls]