ColorMap

Inheritance: java.lang.Object

public final class ColorMap

Defines a map for converting colors. Several methods of the ImageAttributes class adjust image colors by using a color-remap table, which is an array of ColorMap structures. Not inheritable.

Constructors

ConstructorDescription
ColorMap()Initializes a new instance of the ColorMap class.

Methods

MethodDescription
getOldColor()Gets the existing Color structure to be converted.
setOldColor(Color value)Sets the existing Color structure to be converted.
getNewColor()Gets the new Color structure to which to convert.
setNewColor(Color value)Sets the new Color structure to which to convert.

ColorMap()

public ColorMap()

Initializes a new instance of the ColorMap class.

getOldColor()

public Color getOldColor()

Gets the existing Color structure to be converted.

Returns: Color - The existing Color structure to be converted.

setOldColor(Color value)

public void setOldColor(Color value)

Sets the existing Color structure to be converted.

Parameters:

ParameterTypeDescription
valueColorthe existing Color structure to be converted.

getNewColor()

public Color getNewColor()

Gets the new Color structure to which to convert.

Returns: Color - The new Color structure to which to convert.

setNewColor(Color value)

public void setNewColor(Color value)

Sets the new Color structure to which to convert.

Parameters:

ParameterTypeDescription
valueColorthe new Color structure to which to convert.