| javax.media.jai.UntiledOpImage com.sun.media.jai.mlib.MlibErrorDiffusionOpImage
MlibErrorDiffusionOpImage | final class MlibErrorDiffusionOpImage extends UntiledOpImage (Code) | | An OpImage class that performs an "ErrorDiffusion" operation.
|
Field Summary | |
protected int[] | kernel The scaled values of the error kernel in row major order. | protected int | kernelHeight The height of the kernel. | protected int | kernelKeyX The X position of the key element in the kernel. | protected int | kernelKeyY The Y position of the key element in the kernel. | protected int | kernelScale Scale factor to convert kernel from floating point to integer. | protected int | kernelWidth The width of the kernel. | protected mediaLibImageColormap | mlibColormap The mediaLib colormap. |
kernel | protected int[] kernel(Code) | | The scaled values of the error kernel in row major order.
|
kernelHeight | protected int kernelHeight(Code) | | The height of the kernel.
|
kernelKeyX | protected int kernelKeyX(Code) | | The X position of the key element in the kernel.
|
kernelKeyY | protected int kernelKeyY(Code) | | The Y position of the key element in the kernel.
|
kernelScale | protected int kernelScale(Code) | | Scale factor to convert kernel from floating point to integer.
|
kernelWidth | protected int kernelWidth(Code) | | The width of the kernel.
|
mlibColormap | protected mediaLibImageColormap mlibColormap(Code) | | The mediaLib colormap.
|
MlibErrorDiffusionOpImage | public MlibErrorDiffusionOpImage(RenderedImage source, Map config, ImageLayout layout, LookupTableJAI colormap, KernelJAI errorKernel)(Code) | | Constructs an MlibErrorDiffusionOpImage.
Parameters: source - a RenderedImage. Parameters: config - configuration settings. Parameters: layout - an ImageLayout optionally containing the tilegrid layout, SampleModel, and ColorModel, or null. Parameters: colormap - the target color quantization mapping. Parameters: errorKernel - the error diffusion coefficients. |
computeImage | protected void computeImage(Raster[] sources, WritableRaster dest, Rectangle destRect)(Code) | | Calculate the destination image from the source image.
Parameters: source - The source Raster; should be the whole image. Parameters: dest - The destination WritableRaster; should be the whole image. Parameters: destRect - The destination Rectangle; should equal the destinationimage bounds. |
|
|