Search content:

 

Personal Menu
Username:
Password:
Save password

Become a member

Forgot Password?

 

Don't miss these
Cursor Trails
DriveInfo
Dean Utian's Director Resources
Copy Text - Non Editable Fields & Shockwave
How To Change The Loader
DirectOS Xtra
Imaging Lingo Basics
Special Edition Using Macromedia Director 8.5
Convert Fonts
Drop Shaddow Animating Lame Button-Alphamania
MediaMacros Xtras Mall
 

 

 

Behavior Blend Images

Added on 6/12/2000

 

Compatibilities:
D8 Mac PC Script Shockwave

This item has not yet been rated

Author: DaveMennenoh

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

 


Upload Provided by ABCUpload ASP

Contact

MMI
22 West Court Sq
Suite 2C
Newnan, GA 30263
USA

Fax - (206) 339-5833

Send e-mail