com.jhlabs.image
Class RescaleFilter

java.lang.Object
  extended by com.jhlabs.image.AbstractBufferedImageOp
      extended by com.jhlabs.image.PointFilter
          extended by com.jhlabs.image.TransferFilter
              extended by com.jhlabs.image.RescaleFilter
All Implemented Interfaces:
java.awt.image.BufferedImageOp, java.lang.Cloneable

public class RescaleFilter
extends TransferFilter

A filter which simply multiplies pixel values by a given scale factor.


Field Summary
 
Fields inherited from class com.jhlabs.image.TransferFilter
bTable, gTable, initialized, rTable
 
Fields inherited from class com.jhlabs.image.PointFilter
canFilterIndexColorModel
 
Constructor Summary
RescaleFilter()
           
RescaleFilter(float scale)
           
 
Method Summary
 float getScale()
          Returns the scale factor.
 void setScale(float scale)
          Specifies the scale factor.
 java.lang.String toString()
           
protected  float transferFunction(float v)
           
 
Methods inherited from class com.jhlabs.image.TransferFilter
filter, filterRGB, getLUT, initialize, makeTable
 
Methods inherited from class com.jhlabs.image.PointFilter
setDimensions
 
Methods inherited from class com.jhlabs.image.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RescaleFilter

public RescaleFilter()

RescaleFilter

public RescaleFilter(float scale)
Method Detail

transferFunction

protected float transferFunction(float v)
Overrides:
transferFunction in class TransferFilter

setScale

public void setScale(float scale)
Specifies the scale factor.

Parameters:
scale - the scale factor.
See Also:
getScale()

getScale

public float getScale()
Returns the scale factor.

Returns:
the scale factor.
See Also:
setScale(float)

toString

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