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 com.aspose.imaging.ColorMap structures. Not inheritable.

Constructors

ConstructorDescription
ColorMap()

Methods

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

ColorMap()

public ColorMap()

getOldColor()

public Color getOldColor()

Gets the existing com.aspose.imaging.Color structure to be converted.

Returns: Color - The existing com.aspose.imaging.Color structure to be converted.

setOldColor(Color value)

public void setOldColor(Color value)

Sets the existing com.aspose.imaging.Color structure to be converted.

Parameters:

ParameterTypeDescription
valueColorThe existing com.aspose.imaging.Color structure to be converted.

getNewColor()

public Color getNewColor()

Gets the new com.aspose.imaging.Color structure to which to convert.

Returns: Color - The new com.aspose.imaging.Color structure to which to convert.

setNewColor(Color value)

public void setNewColor(Color value)

Sets the new com.aspose.imaging.Color structure to which to convert.

Parameters:

ParameterTypeDescription
valueColorThe new com.aspose.imaging.Color structure to which to convert.