Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix export of semi-transparent bitmaps

  • Loading branch information...
commit 2e9c465da902e601e076a4887d3851c3ee71962d 1 parent baba4e3
@80prozent 80prozent authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 awaybuilder-core/src/awaybuilder/utils/encoders/AWDEncoder.as
View
8 awaybuilder-core/src/awaybuilder/utils/encoders/AWDEncoder.as
@@ -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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.