It works fine, just trying to optimize...
--aTemplate=the member of the template image (160x120 with rounded corners) --inMember=the member of the large image --aMask= (member identical to aTemplate except 1 bit).image.createmask() --outMember=new(#bitmap)
on createThumbNail aTemplage, inMember, outMember
--get thumbnail template image
tmpImage=aTemplate.image.duplicate()
--simplified for list purposes
destRect=rect(0,0,160,120)
--PASS 1 --create thumbnail out of larger image tmpImage.copyPixels(inMember.image, destrect,inmember.rect)
--PASS 2
--now round the edges of thumbnail
outImage=aTemplate.image.duplicate()
outImage.copyPixels(tmpImage,destRect,destRect,[#maskimage:amask])
outMember.image=outImage
end
--
Thank you,
Stephen
[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!]
