ColorMap
Contents
[
Hide
]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
Constructor | Description |
---|---|
ColorMap() | Initializes a new instance of the ColorMap class. |
Methods
Method | Description |
---|---|
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:
Parameter | Type | Description |
---|---|---|
value | Color | the 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:
Parameter | Type | Description |
---|---|---|
value | Color | the new Color structure to which to convert. |