Hi, ps if you are just wanting to half the alpha something along these lines should work as well:
var newbitmap:BitmapData = new BitmapData (widht, height, true, 0x0); newbitmap.draw (oldbitmap, new Matrix(), new ColorTransform(1,1,1,0.5,0,0,0,0)); greetz JC On Mon, Oct 6, 2008 at 9:17 PM, sebastian <[EMAIL PROTECTED]> wrote: > hi folks, > > can any one shed some light to me on the setpixel32 and getpixel32? > > I'd like to be able to affect just one of the 4 components: A R G or B > independently of another. > > Essentially, read the current ARGB using getPixel32 and then manipulate just > one part of it, in my case, halve the current "A" value of the ARGB and then > re-assign it back to the bitmap. > > > //1: grab the HEX value for the current coordinate: > var val:uint = getPixel32(x,y); > > //2: manipulate the HEX value of just 1 of the 4 parts, in my case the A of > the ARGB: > ???? > > //3: re-assign it back to the display: > setPixel32(x,y,val); > > Thanks for your help! > > Sebastian. > _______________________________________________ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders