How do I get the actual resolution of an image?
When I have an image downloaded to disk, I try to get the width or height and I always seem to get back the size of the view and not the size of the image in the view.. how can I get the resolution of a random image?
1 Answer
-
var baseImage = Titanium.UI.createImageView({ image : imageBlob, width : 'auto', height : 'auto' }); var imageWidth = baseImage.toImage().width; var imageHeight = baseImage.toImage().height;