Load image of size greater than 2880 in Bitmap
问题 I am using bitmap to load the image, if the image size is more than 2880 h/w I am getting an error. BitmapData src = new BitmapData(canvasToPrint.width,canvasToPrint.height)(canvasToPrint.width, canvasToPrint.height); src.draw(_designArea); // -- encode the jpg var quality:int = 115; var jpg:JPEGEncoder = new JPEGEncoder(quality); var byteArray:ByteArray = jpg.encode(src); if canvasToPrint.width > 2880 or canvasToPrint.width > 2880 I will get below error at line 1 Error : invalid Bitmap To