Purple Code

com.purpletech.awt
Class ImageMasker

java.lang.Object
  |
  +--com.purpletech.awt.ImageMasker

public class ImageMasker
extends java.lang.Object

Masks an image with another image. I.e., crops the src to fit the contour of the mask.


Constructor Summary
ImageMasker(java.awt.Image mask, java.awt.Color maskColor)
           
 
Method Summary
static void main(java.lang.String[] args)
           
 java.awt.Image mask(java.awt.Image src, boolean makeTransparent)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageMasker

public ImageMasker(java.awt.Image mask,
                   java.awt.Color maskColor)
Method Detail

mask

public java.awt.Image mask(java.awt.Image src,
                           boolean makeTransparent)

main

public static void main(java.lang.String[] args)

Documentation generated March 5 2003