Search

 

November 2005
S M T W T F S
« Oct   Dec »
 12345
6789101112
13141516171819
20212223242526
27282930  

Tags

Archives


« | Main | »

Image Cropping with AS3 and Flex 2

By Rich Tretola | November 15, 2005
11,189 views

This example show how to crop out a section on an image using the new Bitmap and BitmapData classes. It captures the x,y,height, and width from the draggable red crop box. Source code for this sample is available in the Flex By Example section of IFBIN.com.

This sample requires the Flash 8.5 player.

Run This Code

Topics: Flex, Tutorials | 5 Comments »

5 Responses to “Image Cropping with AS3 and Flex 2”

  1. karthikeyan.cs Says:
    October 17th, 2008 at 1:03 pm

    hi friends.i need to crop the image in flex using actionscript.can yu please help me?

    Reply to this comment

  2. yeremy Says:
    January 23rd, 2009 at 12:57 am

    that could help you :D

    http://code.mediablur.com/ImageCropper/ImageCropperDemo.html

    Reply to this comment

  3. satish Says:
    January 7th, 2010 at 11:59 am

    Hello,

    I have gone thru some of examples and i find them interesting.
    I am trying to develop a crop tool(in Actionscript3) having rectangle, circular, triangular kind of shapes. I did the
    rectagular crop using copyPixel(). But I am not getting the other crop-shapes.
    Can you help me out of this problem by giving suggestions or some hints.

    I hope you will.

    rgds,

    Satish

    Reply to this comment

  4. sanjay Says:
    April 29th, 2011 at 3:03 am

    Is there a way to make selection, like magmatic lasso tool around an image and then crop it and save as a .png file in flex.

    Reply to this comment

  5. sanjay Says:
    May 11th, 2011 at 2:59 am

    rectagular cropping tool with adjust size with all 4sides by using mouse, means we can make shape bigger or smaller by those sides. How we can do this in flex4.

    Reply to this comment

Comments