Hi Pritesh, You can add a sprite on top of ur canvas and draw whatever u want on it. I have used this technique to highlight certain parts of the image but I have never tried to crop an image. I think if u draw a circle on the new sprite on top of the image and blank out everything outside of the circle it should look like the image has been cropped. However this does not alter the loaded image in any way. If u want to save/export this cropped image then i suggest u find another permanent way.
Hope this helps. On May 14, 5:28 pm, priteshdesai <[email protected]> wrote: > 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" source="@Embed('img/selfportrait.jpg')" > creationComplete="smoothImage(event);" /> > <s:BorderContainer borderWeight="2" borderColor="red"> > </mx:Canvas> -- You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/flex_india?hl=en.

