Package com.jhlabs.image
Class RescaleFilter
java.lang.Object
com.jhlabs.image.AbstractBufferedImageOp
com.jhlabs.image.PointFilter
com.jhlabs.image.TransferFilter
com.jhlabs.image.RescaleFilter
- All Implemented Interfaces:
BufferedImageOp,Cloneable
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, rTableFields inherited from class com.jhlabs.image.PointFilter
canFilterIndexColorModel -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatgetScale()Returns the scale factor.voidsetScale(float scale) Specifies the scale factor.toString()protected floattransferFunction(float v) Methods inherited from class com.jhlabs.image.TransferFilter
filter, filterRGB, getLUT, initialize, makeTableMethods inherited from class com.jhlabs.image.PointFilter
setDimensionsMethods inherited from class com.jhlabs.image.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
-
Constructor Details
-
RescaleFilter
public RescaleFilter() -
RescaleFilter
public RescaleFilter(float scale)
-
-
Method Details
-
transferFunction
protected float transferFunction(float v) - Overrides:
transferFunctionin classTransferFilter
-
setScale
public void setScale(float scale) Specifies the scale factor.- Parameters:
scale- the scale factor.- See Also:
-
getScale
public float getScale()Returns the scale factor.- Returns:
- the scale factor.
- See Also:
-
toString
-