0 Replies Latest reply on Jan 24, 2011 3:45 AM by chandu3107

    imagesnapshot.capturebitmapdata with rotation matrix

    chandu3107 Level 2

      Hi all,

       

      I am not able to use imagesnapshot with rotation matrix.

       

      I am using imagesnapshot to cpature bitmapdata from image.

       

      My image is rotated so I want to rotate bitmapdata as per rotation.

       

      Here is the code.

       

      var matrix:Matrix = new Matrix();
      matrix
      .rotate(degreesToRadians(90));
      var bitmapData:BitmapData = ImageSnapshot.captureBitmapData(image, matrix);

       

      This code is not working it gives error.

       

      any idea why it is giving error?