com.jhlabs.image
Class LevelsFilter
- BufferedImageOp, Cloneable
public class LevelsFilter
A filter which allows levels adjustment on an image.
LevelsFilter
public LevelsFilter()
Construct a WholeImageFilter.
filterPixels
protected int[] filterPixels(int width,
int height,
int[] inPixels,
Rectangle transformedSpace)
Actually filter the pixels.
- filterPixels in interface WholeImageFilter
width
- the image widthheight
- the image heightinPixels
- the image pixelstransformedSpace
- the output bounds
filterRGB
public int filterRGB(int x,
int y,
int rgb)
getHighLevel
public float getHighLevel()
getHighOutputLevel
public float getHighOutputLevel()
getLowLevel
public float getLowLevel()
getLowOutputLevel
public float getLowOutputLevel()
setHighLevel
public void setHighLevel(float highLevel)
setHighOutputLevel
public void setHighOutputLevel(float highOutputLevel)
setLowLevel
public void setLowLevel(float lowLevel)
setLowOutputLevel
public void setLowOutputLevel(float lowOutputLevel)
toString
public String toString()