2009-04-08

Problem drawing big bitmapdata in FP 10

Today I was having problem drawing big bitmapdatas, and save them to disk in Air. When I was trying to save an image with size 2933*5447 the image came out cropped. After some googleing I found that the limit of 8191px in Flashplayer 10 only represents the limit of an displayObjects max size on the stage. The actual max size of a BitmapData seams to be 4096px, so the application ignores to throw error, it just cropps the BitmapData. The solution for this problem can be found here http://blog.formatlos.de/2008/12/11/bitmapdatadraw-is-limited-to-4096px/.