Package com.jhlabs.image
Class GammaFilter
- java.lang.Object
-
- com.jhlabs.image.AbstractBufferedImageOp
-
- com.jhlabs.image.PointFilter
-
- com.jhlabs.image.TransferFilter
-
- com.jhlabs.image.GammaFilter
-
- All Implemented Interfaces:
java.awt.image.BufferedImageOp
,java.lang.Cloneable
public class GammaFilter extends TransferFilter
A filter for changing the gamma of an image.
-
-
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
Constructors Constructor Description GammaFilter()
GammaFilter(float gamma)
GammaFilter(float rGamma, float gGamma, float bGamma)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description float
getGamma()
protected void
initialize()
protected int[]
makeTable(float gamma)
void
setGamma(float gamma)
void
setGamma(float rGamma, float gGamma, float bGamma)
java.lang.String
toString()
-
Methods inherited from class com.jhlabs.image.TransferFilter
filter, filterRGB, getLUT, makeTable, transferFunction
-
Methods inherited from class com.jhlabs.image.PointFilter
setDimensions
-
Methods inherited from class com.jhlabs.image.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
-
-
-
-
Method Detail
-
setGamma
public void setGamma(float rGamma, float gGamma, float bGamma)
-
setGamma
public void setGamma(float gamma)
-
getGamma
public float getGamma()
-
initialize
protected void initialize()
- Overrides:
initialize
in classTransferFilter
-
makeTable
protected int[] makeTable(float gamma)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-