the linkageid "rgb" is a bitmap with typographic stuff made from pure
blue, red or green characters.
"gfx" is just a texture bitmap.
I'm just testing some ways of making multiple (r/g/b) masks/mattes
within one jpg.
when I load the "rgb" -typo bitmap I miss the alpha channel. so I create
a new bitmapdat object whos's got one,
and then MERGE the channels of "rgb"-typo bitmap in the new
"bdAddAlpha"-bitmap.
Is there an easier way of doing this: adding alpha to loadbitmap ?
thanks for reading / helping,
latcho
var bd:BitmapData = BitmapData.loadBitmap("gfx");
var bdAddAlpha:BitmapData=new BitmapData(480,480,true,0x00000000)
bdAddAlpha.merge(bd,new Rectangle(0,0,480,480),new
Point(0,0),255,255,255,255) // easier better way ?
var bd_rgbtypo_msk:BitmapData = BitmapData.loadBitmap("rgb");
var mc:MovieClip = _root.createEmptyMovieClip("mc",
_root.getNextHighestDepth());
bdAddAlpha.copyChannel(bd_rgbtypo_msk,new Rectangle(0,0,480,480),new
Point(0,0),2,8) // green-key
_root.mc.attachBitmap(bdAddAlpha, _root.mc.getNextHighestDepth());
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders