| org.geotools.coverage.processing.Operation2D org.geotools.coverage.processing.operation.IndexColorOperation
All known Subclasses: org.geotools.coverage.processing.operation.Recolor,
IndexColorOperation | abstract class IndexColorOperation extends Operation2D (Code) | | Operation applied only on image's colors. This operation work only for source
image using an
IndexColorModel .
version: $Id: IndexColorOperation.java 26601 2007-08-19 23:16:35Z desruisseaux $ author: Martin Desruisseauxorg.geotools.coverage.processing |
doOperation | public Coverage doOperation(ParameterValueGroup parameters, Hints hints)(Code) | | Performs the color transformation. This method invokes the
IndexColorOperation.transformColormap transformColormap(...) method with current RGB
colormap, the source
SampleDimension and the supplied parameters.
Parameters: parameters - The parameters. Parameters: hints - Rendering hints (ignored in this implementation). throws: IllegalArgumentException - if the candidate image do not use anIndexColorModel. |
transformColormap | abstract protected GridSampleDimension transformColormap(int[] ARGB, int band, GridSampleDimension sampleDimension, ParameterValueGroup parameters)(Code) | | Transforms the supplied RGB colors. This method is automatically invoked
by
IndexColorOperation.doOperation(ParameterList) for each band in the source
GridCoverage2D . The
ARGB array contains the ARGB values
from the current source and should be overridden with new ARGB values
for the destination image.
Parameters: ARGB - Alpha, Red, Green and Blue components to transform. Parameters: band - The band number, from 0 to the number of bands in the image -1. Parameters: sampleDimension - The sample dimension of band band . Parameters: parameters - The user-supplied parameters. A sample dimension identical to sampleDimension except for thecolors. Subclasses may conservatively returns sampleDimension . |
Fields inherited from org.geotools.coverage.processing.Operation2D | final protected static int PRIMARY_SOURCE_INDEX(Code)(Java Doc) final public static ParameterDescriptor SOURCE_0(Code)(Java Doc)
|
|
|