Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yiwenl/AlphaExporter
An Alpha Exporter for transparent images
https://github.com/yiwenl/AlphaExporter
Last synced: 3 months ago
JSON representation
An Alpha Exporter for transparent images
- Host: GitHub
- URL: https://github.com/yiwenl/AlphaExporter
- Owner: yiwenl
- Created: 2012-11-14T11:23:53.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2012-11-14T12:27:37.000Z (almost 12 years ago)
- Last Synced: 2024-06-23T19:33:54.465Z (5 months ago)
- Language: ActionScript
- Size: 616 KB
- Stars: 13
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-actionscript-sorted - AlphaExporter - An Alpha Exporter for transparent images (Multimedia / Image)
README
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 imagevar 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));