Contents | Package | Class | Tree | Deprecated | Index | Help | Java 1.2 Beta 3 | ||
PREV | NEXT | SHOW LISTS | HIDE LISTS |
java.lang.Object | +----java.awt.image.LookupOp
For Rasters, the lookup operates on channel elements. The number of lookup arrays may be one, in which case the same array is applied to all channels, or it must equal the number of Source Raster channels.
For BufferedImages, the lookup operates on color and alpha components. The number of lookup arrays may be one, in which case the same array is applied to all color and alpha components, or it must equal the number of Source color components, in which case no lookup of the alpha component (if present) is performed, or it must equal the number of Source color components plus alpha components, in which case lookup is performed for all color and alpha components. This allows non-uniform rescaling of multi-channelled BufferedImages. Images with an IndexColorModel cannot be used.
This class allows the Source to be the same as Destination.
Constructor Summary | |
LookupOp(LookupTable lookup)
|
Method Summary | |
BufferedImage | createCompatibleDestImage(BufferedImage src,
ColorModel destCM)
|
WritableRaster | createCompatibleDestRaster(Raster src)
|
BufferedImage | filter(BufferedImage src,
BufferedImage dst)
|
WritableRaster | filter(Raster src,
WritableRaster dst)
|
Rectangle2D | getDestBounds(BufferedImage src)
|
Rectangle2D | getDestBounds(Raster src)
|
Point2D | getDestPoint(Point2D srcPt,
Point2D dstPt)
|
LookupTable | getLookupTable()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LookupOp(LookupTable lookup)
Method Detail |
public final LookupTable getLookupTable()
public BufferedImage filter(BufferedImage src, BufferedImage dst)
public WritableRaster filter(Raster src, WritableRaster dst)
public Rectangle2D getDestBounds(BufferedImage src)
public Rectangle2D getDestBounds(Raster src)
public BufferedImage createCompatibleDestImage(BufferedImage src, ColorModel destCM)
src
- Source image for the filter operation.
destCM
- ColorModel of the destination. If null, the
ColorModel of the source will be used.
public WritableRaster createCompatibleDestRaster(Raster src)
public Point2D getDestPoint(Point2D srcPt, Point2D dstPt)
Contents | Package | Class | Tree | Deprecated | Index | Help | Java 1.2 Beta 3 | ||
PREV | NEXT | SHOW LISTS | HIDE LISTS |