org.geotoolkit.image
Enum ColorQuantization

Object
  extended by Enum<ColorQuantization>
      extended by ColorQuantization
All Implemented Interfaces:
Serializable, Comparable<ColorQuantization>

Deprecated. Deprecated together with ImageWorker.

@Deprecated
public enum ColorQuantization
extends Enum<ColorQuantization>

Kinds of Color Quantization to be applied in some ImageWorker method calls. Those enums can be used as the value of the ImageWorker.COLOR_QUANTIZATION rendering hint.

Since:
3.00
Version:
3.00
Author:
Martin Desruisseaux (Geomatys)
Module:
coverage/geotk-coverage (download)    View source code for this class

Enum Constant Summary
ERROR_DIFFUSION
          Deprecated. Color quantization by finding the nearest color to each pixel in a color map and "diffusing" the color quantization error below and to the right of the pixel.
ORDERED_DITHER
          Deprecated. Color quantization by finding the nearest color to each pixel in a color cube and "shifting" the resulting index value by a pseudo-random amount determined by the values of a dither mask.
 
Method Summary
static ColorQuantization valueOf(String name)
          Deprecated. Returns the enum constant of this type with the specified name.
static ColorQuantization[] values()
          Deprecated. Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ERROR_DIFFUSION

public static final ColorQuantization ERROR_DIFFUSION
Deprecated. 
Color quantization by finding the nearest color to each pixel in a color map and "diffusing" the color quantization error below and to the right of the pixel.

See Also:
ErrorDiffusionDescriptor

ORDERED_DITHER

public static final ColorQuantization ORDERED_DITHER
Deprecated. 
Color quantization by finding the nearest color to each pixel in a color cube and "shifting" the resulting index value by a pseudo-random amount determined by the values of a dither mask.

See Also:
OrderedDitherDescriptor
Method Detail

values

public static ColorQuantization[] values()
Deprecated. 
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (ColorQuantization c : ColorQuantization.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ColorQuantization valueOf(String name)
Deprecated. 
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2009-2012 Geotoolkit.org. All Rights Reserved.