Hello,
I need to resize (by code) all the images of my game in a regular way. Is it possible to do a such “simple” thing?
Hello,
I need to resize (by code) all the images of my game in a regular way. Is it possible to do a such “simple” thing?
I’m not 100% sure what you’re asking, but I warrant a guess I’d say the question is,
“How can I control magnification/minification filtering.” i.e. Nearest Neighbor versus Linear blending/filtering.
You can control that with
“magTextureFilter” — The default magnification sampling filter applied whenever an image is loaded by Corona. Once an image is loaded the first time, the same sampling filter will be applied for any subsequent loads of the same file. This is because textures are loaded once per file. Default value is “linear”. Alternative value is “nearest”.
“minTextureFilter” — The default minification sampling filter applied whenever an image is loaded by Corona. Once an image is loaded the first time, the same sampling filter will be applied for any subsequent loads of the same file. This is because textures are loaded once per file. Default value is “linear”. Alternative value is “nearest”.
here:
https://docs.coronalabs.com/daily/api/library/display/setDefault.html#texture-keys
Excellent ! It’s exactly what I need! Now all my graphics can be magnified with a nice pixelisation.
Thank you
I’m not 100% sure what you’re asking, but I warrant a guess I’d say the question is,
“How can I control magnification/minification filtering.” i.e. Nearest Neighbor versus Linear blending/filtering.
You can control that with
“magTextureFilter” — The default magnification sampling filter applied whenever an image is loaded by Corona. Once an image is loaded the first time, the same sampling filter will be applied for any subsequent loads of the same file. This is because textures are loaded once per file. Default value is “linear”. Alternative value is “nearest”.
“minTextureFilter” — The default minification sampling filter applied whenever an image is loaded by Corona. Once an image is loaded the first time, the same sampling filter will be applied for any subsequent loads of the same file. This is because textures are loaded once per file. Default value is “linear”. Alternative value is “nearest”.
here:
https://docs.coronalabs.com/daily/api/library/display/setDefault.html#texture-keys
Excellent ! It’s exactly what I need! Now all my graphics can be magnified with a nice pixelisation.
Thank you