java.awt.image
public class LookupOp extends Object implements BufferedImageOp, RasterOp
Constructor Summary | |
---|---|
LookupOp(LookupTable lookup, RenderingHints hints)
Construct a new LookupOp using the given LookupTable.
|
Method Summary | |
---|---|
BufferedImage | createCompatibleDestImage(BufferedImage src, ColorModel dstCM) |
WritableRaster | createCompatibleDestRaster(Raster src) |
BufferedImage | filter(BufferedImage src, BufferedImage dst)
Converts the source image using the lookup table specified in the
constructor. |
WritableRaster | filter(Raster src, WritableRaster dest)
Filter a raster through a lookup table.
|
Rectangle2D | getBounds2D(BufferedImage src) |
Rectangle2D | getBounds2D(Raster src) |
Point2D | getPoint2D(Point2D src, Point2D dst)
Returns the corresponding destination point for a given source point.
|
RenderingHints | getRenderingHints() |
LookupTable | getTable()
Return the LookupTable for this op.
|
Parameters: lookup LookupTable to use. hints Rendering hints (can be null).
Parameters: src The source image. dst The destination image.
Returns: The convolved image.
Throws: IllegalArgumentException if the rasters and/or color spaces are incompatible. ArrayIndexOutOfBoundsException if a pixel in the source is not contained in the LookupTable.
Parameters: src The source raster. dest The destination raster.
Returns: The WritableRaster with the filtered pixels.
Throws: IllegalArgumentException if lookup table has more than one component but not the same as src and dest. ArrayIndexOutOfBoundsException if a pixel in the source is not contained in the LookupTable.
Parameters: src The source point. dst The destination point.
Returns: The lookup table.