An Alpha Exporter for transparent images
ActionScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin-debug
bin-release
lib
src
.gitignore
README.md

README.md

This is a simple tool to separate a image with transparency into 2 different non-transparent images, in order to reduce the file size.

To recreate the original image with actionscript :

// _bmpdExport : the export image without alpha channel // _bmpdAlpha : the alpha image

var bmpd:BitmapData = new BitmapData(_bmpd.width, _bmpd.height, true, 0x00000000); bmpd.draw(_bmpdExport); bmpd.copyChannel(_bmpdAlpha, bmpd.rect, new Point, BitmapDataChannel.RED, BitmapDataChannel.ALPHA); _container.addChild(new Bitmap(bmpd));