1 Reply Latest reply on May 15, 2011 9:15 AM by Barna Biro

    Image Editor in Flex: How to Crop?

    pritesh_desai

      I want to create an image editor. I have this image which I can move
      around the canvas.
      I want to keep a border of the circle over this image. Now you you hit
      the crop button, the part of the image which is under the circle
      should get cropped.

      How can I do this?


      <mx:Canvas id="outside" height="100%" width="100%"
      verticalScrollPolicy="off" horizontalScrollPolicy="off" >
                     <mx:Image id="inside" sour...@Embed('img/selfportrait.jpg')"
      creationComplete="smoothImage(event);" />
                     <s:BorderContainer  borderWeight="2" borderColor="red">
      </mx:Canvas>