| javax.media.jai.ColormapOpImage com.sun.media.jai.opimage.InvertOpImage
InvertOpImage | final class InvertOpImage extends ColormapOpImage (Code) | | An OpImage implementing the "Invert" operation as
described in javax.media.jai.operator.InvertDescriptor .
This OpImage negates the pixel values of the source
image on a per-band basis by subtracting the pixel values from the
maximum value of the respective data type. Please note that data type
byte is treated as unsigned with a maximum value of 0xFF. The value
of the pixel (x, y) in the destination image is defined as:
for (b = 0; b < dst.numBands; b++) {
dst[y][x][b] = maximumValue - src[y][x][b];
}
See Also: javax.media.jai.operator.InvertDescriptor See Also: InvertRIF |
Constructor Summary | |
public | InvertOpImage(RenderedImage source, Map config, ImageLayout layout) Constructs an InvertOpImage .
The layout parameter may optionally contains the
tile grid layout, sample model, and/or color model. |
Method Summary | |
protected void | computeRect(Raster[] sources, WritableRaster dest, Rectangle destRect) Inverts the pixel values within a specified rectangle. | protected void | transformColormap(byte[][] colormap) Transform the colormap according to the rescaling parameters. |
InvertOpImage | public InvertOpImage(RenderedImage source, Map config, ImageLayout layout)(Code) | | Constructs an InvertOpImage .
The layout parameter may optionally contains the
tile grid layout, sample model, and/or color model. The image
dimension is set to the same values as that of the source image.
The image layout of the source image is used as the fall-back
for the image layout of the destination image. Any layout parameters
not specified in the layout argument are set to the
same value as that of the source.
Parameters: source - The source image. Parameters: layout - The destination image layout. |
computeRect | protected void computeRect(Raster[] sources, WritableRaster dest, Rectangle destRect)(Code) | | Inverts the pixel values within a specified rectangle.
Parameters: sources - Cobbled sources, guaranteed to provide all thesource data necessary for computing the rectangle. Parameters: dest - The tile containing the rectangle to be computed. Parameters: destRect - The rectangle within the tile to be computed. |
transformColormap | protected void transformColormap(byte[][] colormap)(Code) | | Transform the colormap according to the rescaling parameters.
|
Methods inherited from javax.media.jai.ColormapOpImage | final protected void initializeColormapOperation()(Code)(Java Doc) final protected boolean isColormapOperation()(Code)(Java Doc) abstract protected void transformColormap(byte[][] colormap)(Code)(Java Doc)
|
|
|