Skip to content

Commit

Permalink
fix export of semi-transparent bitmaps
Browse files Browse the repository at this point in the history
  • Loading branch information
80prozent committed Jun 20, 2013
1 parent baba4e3 commit 2e9c465
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions awaybuilder-core/src/awaybuilder/utils/encoders/AWDEncoder.as
Original file line number Diff line number Diff line change
Expand Up @@ -1981,13 +1981,13 @@ package awaybuilder.utils.encoders
}
//check if a transparent pixel was found in a bitmap (use PNG vs JPG)
private function bitMapHasTransparency(bmd:BitmapData,w:Number,h:Number):Boolean {

/*
var i:int;
var j:int;
for(i=0;i<w;i++) for(j=0;j<h;j++) if(bmd.getPixel32(i, j) == 0) return true;

return false;
for(i=0;i<w;i++) for(j=0;j<h;j++) if(bmd.getPixel32(i, j) < 1) return true;
*/
return bmd.transparent;

}

Expand Down

0 comments on commit 2e9c465

Please sign in to comment.