> I am unfimilar with imaging lingo, could you help to point me
> in the right direction, a few commands to look up or something.
No problem. All you'd need for this is image() and copyPixels():
image( width, height, bitDepth )
image.copyPixels( srcImage, destRect, srcRect, [paramList])
Here's the idea:
-- 1. Get aliases to members (optional)
BG = member("background")
L2 = member("layer2")
-- 2. Dump the background into the image
img = image( BG.width, BG.height, 16 )
img.copyPixels( BG.image, img.rect, BG.rect )
-- 3. Paint layer #2, with background transparent ink
destRect = rect( 50,50, 50+L2.width, 50+L2.height )
img.copyPixels( L2.image, destRect, L2.rect, [ #ink:36 ])
-- 4. Create a new castMember
mem = new(#bitmap)
-- 5. Dump the image into the new castMember
mem.image = img
print mem
...and you're done. Hope this clears it up.
/*********************************
* Rob Wingate, Software Human *
* http://www.vingage.com *
* mailto:[EMAIL PROTECTED] *
*********************************/
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/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!]