私はこのようなコードを持っています:
var bitmapData:BitmapData = new BitmapData(width, height);
bitmapData.draw(this);
var ba:ByteArray = (new PNGEncoder()).encodeByteArray(bitmapData.getPixels(clipRect),width,height,true);
生成されたPNGの白い色を透明にしたい。そうするための最良の方法は何ですか?
私はこのようなコードを持っています:
var bitmapData:BitmapData = new BitmapData(width, height);
bitmapData.draw(this);
var ba:ByteArray = (new PNGEncoder()).encodeByteArray(bitmapData.getPixels(clipRect),width,height,true);
生成されたPNGの白い色を透明にしたい。そうするための最良の方法は何ですか?