- Last visit
|When I add a sprite and immediately after creating or adding the image, check the size of the image, I get [0,0] in the size.|
var itemImage = sprite(imagePath);
someBtn.add(itemImage, 1, 1);
var sizeImage = itemImage.size();
Is there any way to get the actual size of the image at either the point when you create the sprite or when you add it to its parent? I need to do some image manipulations based on the size of the image.