getting measured image size after maintainAspectRatio

Hello all

I have a canvas with the dimensions of 350*350. Inside I have an image loaded which is somewhat about 1000*800, and I use te maintainAspectRatio for it, to match the canvas dimensions.

Is there any way to know the new dimensions or the scaling ratio of the displayed image?

Thanks :)
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

something like this?
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="" layout="absolute">
	<mx:Canvas left="10" right="10" bottom="10" top="10">
		<mx:Image left="0" right="0" top="0" bottom="0" id="myimg" scaleContent="true" autoLoad="true" maintainAspectRatio="true"/>
		<mx:Label x="10" y="10" text="{'Image Scale Ratio:'+myimg.width /350}" width="279"/>

Open in new window

yyyannagAuthor Commented:
evcr - no, because you didn't limit the canvas to a size...

Anyway, I found the solution, I used the image bitmapData to get the actual displayed width and height :)

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Apache Flex

From novice to tech pro — start learning today.