Skip to main content
Participant
August 13, 2014
Question

Severe Artifacts in AIR beta 15 in BitmapData.draw()

  • August 13, 2014
  • 1 reply
  • 872 views

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));

  }

  }

}

This topic has been closed for replies.

1 reply

Pahup
Adobe Employee
Adobe Employee
August 14, 2014

Hi Mario,

Thanks for reporting the issue. You faced this issue on mobile or desktop? Could you please share the OS/Device and OS version? Also, what is the SDK version, it is 15.0.0.196 or 15.0.0.216?

Thanks

-Pahup

Participant
August 14, 2014

That's on Desktop, Windows 8.1, 64 bit - I've also filed a bug report in the bug base.

I think the SDK does not really matter in this case since it also affect old pre-15 AIR application - I am pretty sure the bug is in the runtime - but it's 15.0.0.196 in this case.

Pahup
Adobe Employee
Adobe Employee
August 14, 2014

Thanks Mario, could you please share the bug number? I've forwarded the issue to appropriate team.

-Thanks

Pahup