Hi Michael, This code only works if the image into which pixels are being copied does not have an alpha channel. (I just opened the example I posted online and set the useAlpha of bitmap1 to FALSE, then tested the copyPixels composite. Setting useAlpha of the composite back to TRUE reveals a very botched image.)
My original post starting this thread stated that copyPixels() does not work when compositing _two_ images with alpha channels. Regards, Daniel Michael von Aichberger wrote: > > Michael, can you post your test? > > I think I posted it already, it only this bit of code: > > on test > > img1 = member("img1").image.duplicate() -- Background Image > img2 = member("img2").image.duplicate() -- image with alpha channel > img2.usealpha = TRUE -- use that alpha channel > with copypixels > img1.copyPixels(img2, img1.rect, img2.rect) > x = new(#bitmap) > x.name = "result" > x.image = img1 > > end > > For the alpha channel in img2 I used a gradient. That way in my resulting > image I can see the upper part of image 1 smoothly "fading" into the lower > part of image 2. > > Regards > Michael [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]