Contents
Articles
Behaviors
Books
Director News
Director Web Sites
FAQ
Games
Mailing Lists
News Groups
Project Examples
Reviews
Software
Tools
Useful Web Sites
Utilities
Xtras

Don't miss these
A shooting game
Editable Field/Text AutoTabbing
Custom Radio/Check Box
Set DirectToStage of a Animated Gif Sprite
Faux Marquee Tool
Increase/ Decrease FrameRate of a Flash Member
Wait for a DirectMedia CuePoint (Index ID as Reference)
Button Factory
Export/Import Text and Filed Members for proofing
StopWatch Timer
 

 

 

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

 


Contact

MMI
36 South Court Sq
Suite 300
Newnan, GA 30263
USA

Send e-mail