| javax.media.jai.ColormapOpImage com.sun.media.jai.opimage.NotOpImage
NotOpImage | final class NotOpImage extends ColormapOpImage (Code) | | An OpImage implementing the "Not" operation as
described in javax.media.jai.operator.NotDescriptor .
This OpImage performs a logical "not" operation on
the the pixel values of the source image on a per-band basis.
The value of the pixel (x, y) in the destination image is defined as:
for (b = 0; b < numBands; b++) {
dst[y][x][b] = ~(src[y][x][b]);
}
The data type byte is treated as unsigned, with maximum
value as 255 and minimum value as 0.
since: EA2 See Also: javax.media.jai.operator.NotDescriptor See Also: NotCRIF |
Method Summary | |
protected void | computeRect(Raster[] sources, WritableRaster dest, Rectangle destRect) Nots the pixel values of the source image within a specified
rectangle. | protected void | transformColormap(byte[][] colormap) Transform the colormap according to the rescaling parameters. |
NotOpImage | public NotOpImage(RenderedImage source, Map config, ImageLayout layout)(Code) | | Constructs an NotOpImage .
Parameters: source - The source image. Parameters: layout - The destination image layout. |
computeRect | protected void computeRect(Raster[] sources, WritableRaster dest, Rectangle destRect)(Code) | | Nots the pixel values of the source image 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)
|
|
|