I created an imageSheet in Texture Packer with an image that has a transparent border around it. The image has 80 pixels square of content in a 100 pixel art board. Texture Packer trimmed off the transparent pixels. When I create a newImageRect using that imageSheet, the resulting display object has a width and height that is the dimensions of the trimmed object, NOT the dimensions of the untrimmed object.
Is this correct/expected behavior? If so, why?
We use Spine with Corona and some of the animators use an image asset that has this transparent padding to help in positioning layered objects. Spine expects this image asset to be a certain width and height, so when it is passed this image that has the dimensions of the trimmed object, it doesn’t look right because the image is stretched to the untrimmed dimensions.
At first I wasn’t sure if this was a Corona issue or a Spine issue, but I would think Corona should honor the untrimmed dimensions of an image in an imageSheet, right?
Thanks for any help. I’ve included a small test program to show the issue.