com.jhlabs.image

Class LevelsFilter

Implemented Interfaces:
BufferedImageOp, Cloneable

public class LevelsFilter
extends WholeImageFilter

A filter which allows levels adjustment on an image.

Field Summary

Fields inherited from class com.jhlabs.image.WholeImageFilter

originalSpace, transformedSpace

Constructor Summary

LevelsFilter()
Construct a WholeImageFilter.

Method Summary

protected int[]
filterPixels(int width, int height, int[] inPixels, Rectangle transformedSpace)
Actually filter the pixels.
int
filterRGB(int x, int y, int rgb)
float
getHighLevel()
float
getHighOutputLevel()
float
getLowLevel()
float
getLowOutputLevel()
void
setHighLevel(float highLevel)
void
setHighOutputLevel(float highOutputLevel)
void
setLowLevel(float lowLevel)
void
setLowOutputLevel(float lowOutputLevel)
String
toString()

Methods inherited from class com.jhlabs.image.WholeImageFilter

filter, filterPixels, transformSpace

Methods inherited from class com.jhlabs.image.AbstractBufferedImageOp

clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRGB, getRenderingHints, setRGB

Constructor Details

LevelsFilter

public LevelsFilter()
Construct a WholeImageFilter.

Method Details

filterPixels

protected int[] filterPixels(int width,
                             int height,
                             int[] inPixels,
                             Rectangle transformedSpace)
Actually filter the pixels.
Overrides:
filterPixels in interface WholeImageFilter
Parameters:
width - the image width
height - the image height
inPixels - the image pixels
transformedSpace - the output bounds
Returns:
the output pixels

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()