topical media & game development
#graphic-flex-image-effects-07-source-aether-effects-common-AlphaEffect.ax
#graphic-flex-image-effects-07-source-aether-effects-common-AlphaEffect.ax
[swf]
[flash]
flex
package aether.effects.common {
import aether.effects.ImageEffect;
import flash.display.BitmapData;
import flash.display.BitmapDataChannel;
import flash.geom.Point;
public class @ax-graphic-flex-image-effects-07-source-aether-effects-common-AlphaEffect extends ImageEffect {
private var _mask:BitmapData;
public function @ax-graphic-flex-image-effects-07-source-aether-effects-common-AlphaEffect(mask:BitmapData) {
_mask = mask;
}
override public function apply(bitmapData:BitmapData):void {
bitmapData.copyChannel(_mask, _mask.rect, new Point(), BitmapDataChannel.ALPHA, BitmapDataChannel.ALPHA);
}
}
}
(C) Æliens
04/09/2009
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.