j2d.gui
Class ColorReduction

java.lang.Object
  extended by j2d.gui.ColorReduction
All Implemented Interfaces:
ImageProcessorInterface, java.io.Serializable

public class ColorReduction
extends java.lang.Object
implements ImageProcessorInterface

Created by IntelliJ IDEA. User: Kyle Date: Apr 18, 2010 Time: 2:28:04 PM To change this template use File | Settings | File Templates.

See Also:
Serialized Form

Constructor Summary
ColorReduction()
           
 
Method Summary
 int getHeight()
           
 double getPercent()
           
 int getWidth()
           
 java.awt.Image process(java.awt.Image img)
          a basic garbage in, garbage out processor.
 void setHeight(int h)
           
 void setPercent(double p)
           
 void setWidth(int w)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ColorReduction

public ColorReduction()
Method Detail

process

public java.awt.Image process(java.awt.Image img)
Description copied from interface: ImageProcessorInterface
a basic garbage in, garbage out processor.

Specified by:
process in interface ImageProcessorInterface
Parameters:
img - input image
Returns:
output image

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

setWidth

public void setWidth(int w)

getWidth

public int getWidth()

setHeight

public void setHeight(int h)

getHeight

public int getHeight()

setPercent

public void setPercent(double p)

getPercent

public double getPercent()