org.jscience.media.pictures.filters
Class RescaleFilter

java.lang.Object
  extended by java.awt.image.ImageFilter
      extended by java.awt.image.RGBImageFilter
          extended by org.jscience.media.pictures.filters.TransferFilter
              extended by org.jscience.media.pictures.filters.RescaleFilter
All Implemented Interfaces:
java.awt.image.ImageConsumer, java.io.Serializable, java.lang.Cloneable

public class RescaleFilter
extends TransferFilter

DOCUMENT ME!

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jscience.media.pictures.filters.TransferFilter
bTable, gTable, initialized, rTable
 
Fields inherited from class java.awt.image.RGBImageFilter
canFilterIndexColorModel, newmodel, origmodel
 
Fields inherited from class java.awt.image.ImageFilter
consumer
 
Fields inherited from interface java.awt.image.ImageConsumer
COMPLETESCANLINES, IMAGEABORTED, IMAGEERROR, RANDOMPIXELORDER, SINGLEFRAME, SINGLEFRAMEDONE, SINGLEPASS, STATICIMAGEDONE, TOPDOWNLEFTRIGHT
 
Constructor Summary
RescaleFilter()
           
 
Method Summary
 float getScale()
          DOCUMENT ME!
 void setScale(float scale)
          DOCUMENT ME!
 java.lang.String toString()
          DOCUMENT ME!
protected  int transferFunction(int v)
          DOCUMENT ME!
 
Methods inherited from class org.jscience.media.pictures.filters.TransferFilter
filterRGB, initialize, makeTable, setDimensions
 
Methods inherited from class java.awt.image.RGBImageFilter
filterIndexColorModel, filterRGBPixels, setColorModel, setPixels, setPixels, substituteColorModel
 
Methods inherited from class java.awt.image.ImageFilter
clone, getFilterInstance, imageComplete, resendTopDownLeftRight, setHints, setProperties
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RescaleFilter

public RescaleFilter()
Method Detail

transferFunction

protected int transferFunction(int v)
DOCUMENT ME!

Overrides:
transferFunction in class TransferFilter
Parameters:
v - DOCUMENT ME!
Returns:
DOCUMENT ME!

setScale

public void setScale(float scale)
DOCUMENT ME!

Parameters:
scale - DOCUMENT ME!

getScale

public float getScale()
DOCUMENT ME!

Returns:
DOCUMENT ME!

toString

public java.lang.String toString()
DOCUMENT ME!

Overrides:
toString in class java.lang.Object
Returns:
DOCUMENT ME!