3 Replies Latest reply on Oct 6, 2009 2:53 PM by JaumeMussons

    creating BitmapData greater than 2880

    Purume77
      In the help of BitmapData class, I found the sentence like the below:

      The maximum width and maximum height of a BitmapData object is 2880 pixels. If you specify a width or height value that is greater than 2880, a new instance is not created.

      It means that I can not treat the image data with greater length than 2880.
      Then I tried to test its operation

      // The code which works well.
      var mData:BitmapData = new BitmapData(2880,240, false, 0x80FF0000);
      var mBitmap:Bitmap = new Bitmap(mData);
      this.addChild(mBitmap);

      // The code which does not work, because of the size.
      var mData:BitmapData = new BitmapData( 2881,,240, false, 0x80FF0000);
      var mBitmap:Bitmap = new Bitmap(mData);
      this.addChild(mBitmap);

      I am finding the way to handle the image greater than 2880.
      Actually, I want to create 4000x2000 image size, and handle it.
      I am waiting any answer from you.
      even though it is not the right answer.
      Thanks.