ColorantRgb
Inheritance: java.lang.Object, com.aspose.imaging.xmp.types.XmpTypeBase, com.aspose.imaging.xmp.types.complex.ComplexTypeBase, com.aspose.imaging.xmp.types.complex.colorant.ColorantBase
public final class ColorantRgb extends ColorantBase
Represents RGB Colorant.
Constructors
Constructor | 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. |
Methods
Method | Description |
---|---|
getRed() | Gets or sets the red component value. |
setRed(byte value) | Gets or sets the red component value. |
getGreen() | Gets or sets the green component value. |
setGreen(byte value) | Gets or sets the green component value. |
getBlue() | Gets or sets the blue component value. |
setBlue(byte value) | Gets or sets the blue component value. |
getXmpRepresentation() | Gets the string contained value in XMP format. |
ColorantRgb()
public ColorantRgb()
Initializes a new instance of the ColorantRgb
class.
ColorantRgb(byte red, byte green, byte blue)
public ColorantRgb(byte red, byte green, byte blue)
Initializes a new instance of the ColorantRgb
class.
Parameters:
Parameter | Type | Description |
---|---|---|
red | byte | The red component value. |
green | byte | The green component value. |
blue | byte | The blue component value. |
getRed()
public byte getRed()
Gets or sets the red component value.
Value: The red component value.
Returns: byte
setRed(byte value)
public void setRed(byte value)
Gets or sets the red component value.
Value: The red component value.
Parameters:
Parameter | Type | Description |
---|---|---|
value | byte |
getGreen()
public byte getGreen()
Gets or sets the green component value.
Value: The green component value.
Returns: byte
setGreen(byte value)
public void setGreen(byte value)
Gets or sets the green component value.
Value: The green component value.
Parameters:
Parameter | Type | Description |
---|---|---|
value | byte |
getBlue()
public byte getBlue()
Gets or sets the blue component value.
Value: The blue component value.
Returns: byte
setBlue(byte value)
public void setBlue(byte value)
Gets or sets the blue component value.
Value: The blue component value.
Parameters:
Parameter | Type | Description |
---|---|---|
value | byte |
getXmpRepresentation()
public String getXmpRepresentation()
Gets the string contained value in XMP format.
Returns: java.lang.String - Returns the string contained value in XMP format.