|
|
|
Blend Images
Added on 6/12/2000
|
blendImages (first member, second member, blend into member, blend value)
Blends two bitmap cast members by a specified alpha value
The new image is put into a preexisting member.
Can be used to provide real-time alpha blending of images
im1 - cast member reference of 1st image to be blended
im2 - cast member reference of 2nd image to be blended
im3 - Specifies the cast member that the new image should be put into
--Director 8 image manipulation routines.
--(c) 2000, Dave Mennenoh
--dmennenoh@hotmail.com
--blendImages (first member, second member, blend into member, blend value)
--Blends two bitmap cast members by a specified alpha value
--The new image is put into a preexisting member.
--Can be used to provide real-time alpha blending of images
--im1 - cast member reference of 1st image to be blended
--im2 - cast member reference of 2nd image to be blended
--im3 - Specifies the cast member that the new image should be put into
on blendImages im1,im2,im3,blVal
wide=im1.width
high=im1.height
newImage=image(wide,high,32)
newImage.copyPixels(im1.image,im1.rect,im1.rect)
newImage.copyPixels(im2.image,im1.rect,im2.rect,[#blendLevel:blVal])
im3.image=newImage
end
|
|