1 person found this helpful
imgage.contentHeight and image.contentWidth
I tried that already and I get a NaN for some reason...
Could it be that I need wait for it to load?
I binded that value to a text component to see, but it doesn't change even after the image is loaded. Is it not bindable?
Yup that's the problem, I have to wait for the complete event...
Guess the values are not bindable...
Not entirely what I wanted though now that I look more closely.
It gives me the W and H of the image, not the resized image.
The image is 1024x768 (for example) but resized to fit into a container... I wanted the size of the content displayed, not the size of the content loaded.