| javax.media.jai.OpImage javax.media.jai.PointOpImage com.sun.media.jai.opimage.OrderedDitherOpImage
OrderedDitherOpImage | final class OrderedDitherOpImage extends PointOpImage (Code) | | An OpImage implementing the ordered dither operation as
described in javax.media.jai.operator.OrderedDitherDescriptor .
This OpImage performs dithering of its source image into
a single band image using a specified color cube and dither mask.
See Also: javax.media.jai.KernelJAI See Also: javax.media.jai.ColorCube since: EA3 |
Field Summary | |
protected int | adjustedOffset The adjusted offset of the color cube. | protected int[] | dims The array of color cube dimensions-less-one. | protected byte[][] | maskDataByte The dither mask matrix scaled by 255. | protected float[][] | maskDataFloat The dither mask matrix. | protected int[][] | maskDataInt The dither mask matrix scaled to USHORT range. | protected long[][] | maskDataLong The dither mask matrix scaled to "unsigned int" range. | protected int | maskHeight The height of the dither mask. | protected int | maskWidth The width of the dither mask. | protected int[] | mults The array of color cube multipliers. | protected int | numBands The number of bands in the source image. | protected DitherLUT | odLUT An inner class instance representing a dither lookup table. |
Method Summary | |
protected void | computeRect(Raster[] sources, WritableRaster dest, Rectangle destRect) Computes a tile of the dithered destination image. |
adjustedOffset | protected int adjustedOffset(Code) | | The adjusted offset of the color cube.
|
dims | protected int[] dims(Code) | | The array of color cube dimensions-less-one.
|
maskDataByte | protected byte[][] maskDataByte(Code) | | The dither mask matrix scaled by 255.
|
maskDataFloat | protected float[][] maskDataFloat(Code) | | The dither mask matrix.
|
maskDataInt | protected int[][] maskDataInt(Code) | | The dither mask matrix scaled to USHORT range.
|
maskDataLong | protected long[][] maskDataLong(Code) | | The dither mask matrix scaled to "unsigned int" range.
|
maskHeight | protected int maskHeight(Code) | | The height of the dither mask.
|
maskWidth | protected int maskWidth(Code) | | The width of the dither mask.
|
mults | protected int[] mults(Code) | | The array of color cube multipliers.
|
numBands | protected int numBands(Code) | | The number of bands in the source image.
|
odLUT | protected DitherLUT odLUT(Code) | | An inner class instance representing a dither lookup table. Used
for byte data only when the table size is within a specified limit.
|
OrderedDitherOpImage | public OrderedDitherOpImage(RenderedImage source, Map config, ImageLayout layout, ColorCube colorMap, KernelJAI[] ditherMask)(Code) | | Constructs an OrderedDitherOpImage object. May be used to convert a
single- or multi-band image into a single-band image with a color map.
The image dimensions are derived from the source image. The tile
grid layout, SampleModel, and ColorModel may optionally be specified
by an ImageLayout object.
Parameters: source - A RenderedImage. Parameters: layout - An ImageLayout optionally containing the tile grid layout,SampleModel, and ColorModel, or null. Parameters: colorMap - The color map to use which must have a number of bandsequal to the number of bands in the source image. The offset of thisColorCube must be the same for all bands. Parameters: ditherMask - An an array of KernelJAI objects thedimension of which must equal the number of bands in the source image.The nth element of the array contains a KernelJAI object which represents the dither mask matrix for the correspondingband. All KernelJAI objects in the array must have thesame dimensions and contain floating point values between 0.0F and 1.0F. |
computeRect | protected void computeRect(Raster[] sources, WritableRaster dest, Rectangle destRect)(Code) | | Computes a tile of the dithered destination image.
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. |
Methods inherited from javax.media.jai.OpImage | protected void addTileToCache(int tileX, int tileY, Raster tile)(Code)(Java Doc) public void cancelTiles(TileRequest request, Point[] tileIndices)(Code)(Java Doc) protected void computeRect(Raster[] sources, WritableRaster dest, Rectangle destRect)(Code)(Java Doc) protected void computeRect(PlanarImage[] sources, WritableRaster dest, Rectangle destRect)(Code)(Java Doc) public Raster computeTile(int tileX, int tileY)(Code)(Java Doc) public boolean computesUniqueTiles()(Code)(Java Doc) final protected WritableRaster createTile(int tileX, int tileY)(Code)(Java Doc) public synchronized void dispose()(Code)(Java Doc) public static int getExpandedNumBands(SampleModel sampleModel, ColorModel colorModel)(Code)(Java Doc) protected synchronized RasterFormatTag[] getFormatTags()(Code)(Java Doc) public int getOperationComputeType()(Code)(Java Doc) public Raster getTile(int tileX, int tileY)(Code)(Java Doc) public TileCache getTileCache()(Code)(Java Doc) public Object getTileCacheMetric()(Code)(Java Doc) public Point[] getTileDependencies(int tileX, int tileY, int sourceIndex)(Code)(Java Doc) protected Raster getTileFromCache(int tileX, int tileY)(Code)(Java Doc) public TileRecycler getTileRecycler()(Code)(Java Doc) public Raster[] getTiles(Point[] tileIndices)(Code)(Java Doc) public boolean hasExtender(int sourceIndex)(Code)(Java Doc) public Point2D mapDestPoint(Point2D destPt, int sourceIndex)(Code)(Java Doc) abstract public Rectangle mapDestRect(Rectangle destRect, int sourceIndex)(Code)(Java Doc) public Point2D mapSourcePoint(Point2D sourcePt, int sourceIndex)(Code)(Java Doc) abstract public Rectangle mapSourceRect(Rectangle sourceRect, int sourceIndex)(Code)(Java Doc) public void prefetchTiles(Point[] tileIndices)(Code)(Java Doc) public TileRequest queueTiles(Point[] tileIndices)(Code)(Java Doc) protected void recycleTile(Raster tile)(Code)(Java Doc) public void setTileCache(TileCache cache)(Code)(Java Doc) protected static Vector vectorize(RenderedImage image)(Code)(Java Doc) protected static Vector vectorize(RenderedImage image1, RenderedImage image2)(Code)(Java Doc) protected static Vector vectorize(RenderedImage image1, RenderedImage image2, RenderedImage image3)(Code)(Java Doc)
|
|
|