public final class ColorantCmyk extends ColorantBase
Represents CMYK Colorant.
Modifier and Type | Field and Description |
---|---|
static float |
COLOR_VALUE_MAX
Color max value in CMYK colorant.
|
static float |
COLOR_VALUE_MIN
Color min value in CMYK colorant.
|
Constructor and Description |
---|
ColorantCmyk()
Initializes a new instance of the
ColorantCmyk class. |
ColorantCmyk(float black,
float cyan,
float magenta,
float yellow)
Initializes a new instance of the
ColorantCmyk class. |
Modifier and Type | Method and Description |
---|---|
float |
getBlack()
Gets or sets the black component value.
|
float |
getCyan()
Gets or sets the cyan component value.
|
float |
getMagenta()
Gets or sets the magenta component value.
|
String |
getXmpRepresentation()
Gets the string contained value in XMP format.
|
float |
getYellow()
Gets or sets the yellow component value.
|
void |
setBlack(float value)
Gets or sets the black component value.
|
void |
setCyan(float value)
Gets or sets the cyan component value.
|
void |
setMagenta(float value)
Gets or sets the magenta component value.
|
void |
setYellow(float value)
Gets or sets the yellow component value.
|
getColorType, getMode, getSwatchName, setColorType, setSwatchName
getNamespaceUri, getPrefix
public static final float COLOR_VALUE_MAX
Color max value in CMYK colorant.
public static final float COLOR_VALUE_MIN
Color min value in CMYK colorant.
public ColorantCmyk()
Initializes a new instance of the ColorantCmyk
class.
public ColorantCmyk(float black, float cyan, float magenta, float yellow)
Initializes a new instance of the ColorantCmyk
class.
black
- The black component value.cyan
- The cyan color component value.magenta
- The magenta component value.yellow
- The yellow component value.public float getBlack()
Gets or sets the black component value.
Value: The black component value.public void setBlack(float value)
Gets or sets the black component value.
Value: The black component value.public float getCyan()
Gets or sets the cyan component value.
Value: The cyan component value.public void setCyan(float value)
Gets or sets the cyan component value.
Value: The cyan component value.public float getMagenta()
Gets or sets the magenta component value.
Value: The magenta component value.public void setMagenta(float value)
Gets or sets the magenta component value.
Value: The magenta component value.public float getYellow()
Gets or sets the yellow component value.
Value: The yellow component value.public void setYellow(float value)
Gets or sets the yellow component value.
Value: The yellow component value.public String getXmpRepresentation()
Gets the string contained value in XMP format.
getXmpRepresentation
in interface IXmpType
getXmpRepresentation
in class ColorantBase