public final class ColorantRgb extends ColorantBase
Represents RGB Colorant.
Constructor and Description |
---|
ColorantRgb()
Initializes a new instance of the
ColorantRgb class. |
ColorantRgb(byte red,
byte green,
byte blue)
Initializes a new instance of the
ColorantRgb class. |
Modifier and Type | Method and Description |
---|---|
byte |
getBlue()
Gets or sets the blue component value.
|
byte |
getGreen()
Gets or sets the green component value.
|
byte |
getRed()
Gets or sets the red component value.
|
String |
getXmpRepresentation()
Gets the string contained value in XMP format.
|
void |
setBlue(byte value)
Gets or sets the blue component value.
|
void |
setGreen(byte value)
Gets or sets the green component value.
|
void |
setRed(byte value)
Gets or sets the red component value.
|
getColorType, getMode, getSwatchName, setColorType, setMode, setSwatchName
add, getNamespaceUri, getPrefix
public ColorantRgb()
Initializes a new instance of the ColorantRgb
class.
public ColorantRgb(byte red, byte green, byte blue)
Initializes a new instance of the ColorantRgb
class.
red
- The red component value.green
- The green component value.blue
- The blue component value.public final byte getRed()
Gets or sets the red component value.
Value: The red component value.public final void setRed(byte value)
Gets or sets the red component value.
Value: The red component value.public final byte getGreen()
Gets or sets the green component value.
Value: The green component value.public final void setGreen(byte value)
Gets or sets the green component value.
Value: The green component value.public final byte getBlue()
Gets or sets the blue component value.
Value: The blue component value.public final void setBlue(byte value)
Gets or sets the blue component value.
Value: The blue component value.public String getXmpRepresentation()
Gets the string contained value in XMP format.
getXmpRepresentation
in interface IXmpType
getXmpRepresentation
in class ColorantBase
Copyright (c) 2008-2020 Aspose Pty Ltd. All Rights Reserved.