6 Replies Latest reply on Jan 14, 2010 4:24 PM by Johnking08

    How to get the best quality of an image when shrinking a jpeg file using <mx:Image ...>

    Johnking08 Level 1

      I'm using following code to display a picture. The original picture is much bigger than the width and height defined in <mx:Image>


      <mx:Image source="@Embed('/images/image1.jpg')" scaleContent="true" autoLoad="true"  id="img1"  width="200" height="200" horizontalAlign="center"/>


      I can see the picture is shrinked, but the quality is very bad, espacially when the original size is much bigger than <mx:Image>'s size. Is there a way to produce a good quality shrinking, as MicroSoft "paint" utlity does, using <mx:Image>?