Severe Artifacts in AIR beta 15 in BitmapData.draw()
The latest beta has introduced a serious bug in BitmapData.draw() - when drawing a bitmapData onto another using a transformation matrix, the pixels are getting messed up:
Example:
package
{
import flash.display.Bitmap;
import flash.display.BitmapData;
import flash.display.Sprite;
import flash.geom.Matrix;
public class Air15ArtifactDemo extends Sprite
{
public function Air15ArtifactDemo()
{
stage.scaleMode = "noScale",
stage.align = "TL";
var map:BitmapData = new BitmapData(1024,1024,true,0);
var map2:BitmapData = new BitmapData(500,500,true,0xff000000);
var m:Matrix = new Matrix();
m.translate(-250,-250);
m.rotate(Math.PI*0.25);
m.scale(1.3,1.3);
m.translate(512,512);
map.draw(map2,m,null,"normal",null,true);
addChild(new Bitmap(map,"auto",true));
}
}
}

