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
MIAW communication
Increase/ Decrease FrameRate of a Flash Sprite
Set PausedAtStart Property of a Flash member
Change Bitdepth
VSnap
SerialXtra
Get Font List without using xtras!
StartFramesScript
Drifter
Director 8 & Lingo Fast and Easy Web Development (With CD-ROM)
 

 

 

Behavior Change Bitdepth

Added on 10/12/2000

 

Compatibilities:
D8 Mac PC Script Shockwave

This item has not yet been rated

Author: MediaMacros (website)

Converts an image member to a lower bit depth. Call... changeImage(member(1,2), 8) First parameter is the member, second is the new bit depth (1,8,16,24, or 32)

on changeImage whatMember, whatDepth
  thisImage = duplicate(whatMember.image)
  whatMember.image = image(thisImage.width, thisImage.height, whatDepth)
  whatMember.image.copyPixels(thisImage, thisImage.rect, thisImage.rect)
end

 


Contact

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

Send e-mail