if you use display.newImageRect to load any image in your project, then should you use this function to load ALL YOUR IMAGES? Is there reasons not to use it sometimes? Maybe for Particle effects? Or maybe simple buttons where detail & quality does not matter as much.
The primary reason to use newImageRect() is that it supports content scaling (@2x, @4x, etc.) newImage() does not.
The primary reason to use display.newImage() is to load images where you don’t now the dimensions, like downloading a photo from the Internet and trying to display it.
For me any image that’s part of my app that I’m in control of, I use display.newImageRect() for the reason Ed suggested.
Rob
Thanks guys
The primary reason to use newImageRect() is that it supports content scaling (@2x, @4x, etc.) newImage() does not.
The primary reason to use display.newImage() is to load images where you don’t now the dimensions, like downloading a photo from the Internet and trying to display it.
For me any image that’s part of my app that I’m in control of, I use display.newImageRect() for the reason Ed suggested.
Rob
Thanks guys