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
Wait for DigitalVideo Cuepoint
Set FrameRate of a Flash Sprite
Macromedia Director Game Development: From Concept to Creation
import and play sound file (during runtime)
aquarium 1.1
MAAD FTP Xtra
Cut Behavior (Ctrl + X)
Change Filled property of a Shape Sprite
Importer
Pass handler to next Sprite
 

 

 

Behavior Posterize Effect - Imaging Lingo

Added on 8/23/2005

 

Compatibilities:
D8 D8_5 D9 Mac Parent PC Shockwave

This item has not yet been rated

Author: Chunick (website)

This image effect can create some cool postering type effects on an image similar to what you'd see with Photoshop's posterize effect, but with much more options.

-- Posterize Image Effect
-- ©2005 by Josh Chunick (josh@chunick.com)
-- This code is free to use in commercial applications
-- or however you want. If you use this code you
-- must keep the comments, including this message,
-- intact. Feel free to add any changes or make
-- improvements.

-- imageRef is an image object
-- bitDepth can be 1,2,4,8,16, 32
-- thePalette can be: #systemwin, #systemmac,
-- #rainbow, #web216, #metallic, #pastels, #vivid, #ntsc
-- theDither can be: true, false, 1215, 1969

on posterize (imageRef, bitDepth, thePalette, theDither)
  posterizedImage = image (imageRef.width, imageRef.height, bitDepth, thePalette)
  posterizedImage.copyPixels (imageRef, imageRef.rect, imageRef.rect, [#dither: theDither])
  return posterizedImage
end  

 


Contact

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

Send e-mail