Flex: How to get image image size?

Give the component Imagehow I can specify the size [width and height] of the bitmap that contains Image(and not the size of the component Image)

I also want to know this as soon as possible, so I think it should be in the Event.COMPLETE event?

Thank!!

+3
source share
2 answers

Because Image extends SWFLoader, the properties contentWidthand contentHeightare publicly available. They are available on "complete" .

Access to image raster image data may not be acceptable if the image is downloaded from another domain.

+3
source

BitmapData .

protected measure()

, - .

0

Source: https://habr.com/ru/post/1739856/


All Articles