8 Replies Latest reply on Jul 22, 2010 3:36 PM by Francisc

    Scaling mx:Image content

    Francisc Level 3

      Hello!

       

      I have an <mx:Image> container with the following properties:

      maintainAspectRatio="true"

      scaleContent="true"

      width>height so that it's rectangular.

       

      Now, some of the pictures are not rectangular, let's say they are square but larger than the Image container dimmensions, hence the need to scale.

       

      The problem I have is that by default the scaling makes all of the image fit in the Image container, in my case, making it's height fit leaving some margins to the left and right.

       

      How can I make it scale on the width even if that means cutting out parts of the top and bottom of the image, please?

       

      Thank you!