Newly created images is NOT transparant, you'll have to set that alpha image
your self.

 -- create buffers
 ilCanvas = image(200, 150, 32) --<< no need for a palette when 32 bits.
 ilImage1 = image(160, 120, 8)
 ilImage2 = image(160, 120, 8)

 ilCanvas.useAlpha = TRUE

vTransparantAlpha = image(200,150,8,#grayscale)
vTransparantAlpha.fill(0,0,200,150, rgb(255,255,255) ) --<< Set opaque

ilCanvas.setAlpha( vTransparantAlpha ) --<< insert opaque alpha into canvas

now, continue with your other stuff...
HTH/Christoffer



> -- draw components
> ilImage1.fill(ilImage1.rect, [#colorrgb(0,255,0)])
> ilImage2.fill(ilImage2.rect, [#colorrgb(0,64,255)])
>
> -- composite components
> ilCanvas.copyPixels(ilImage1, ilImage1.rect, ilImage1.rect, [#blend 50])
> ilCanvas.copyPixels(ilImage2, ilImage2.rect.offset(40, 30), ilImage2.rect,
> [#blend 50])


[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!]

Reply via email to