1 Reply Latest reply on May 17, 2010 3:09 PM by UbuntuPenguin

    Crop an external image

    asadapt84

      Hi guys.

       

      I'm new to flex. I just want to load an external image, crop it and display it on the canvas. do any of you have any idea, how can i do that?

      I know I have to deal with BitmapData class but I am not able to get the bitmap data out of the external image.

       

      Please help me

       

      Regards,

       

      Asad

        • 1. Re: Crop an external image
          UbuntuPenguin Level 4

          First you have to load the image using a Loader/URLoader

          When that is complete,  you have to load the bytes

          When that is complete you get bitmapData

          Then you can copy/crop the bitmapData however you please.

           

          First thing is , you have to learn how to load an external image , then proceed from there.