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

ConstructorDescription
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

MethodDescription
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:

ParameterTypeDescription
redbyteThe red component value.
greenbyteThe green component value.
bluebyteThe 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:

ParameterTypeDescription
valuebyte

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:

ParameterTypeDescription
valuebyte

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:

ParameterTypeDescription
valuebyte

getXmpRepresentation()

public String getXmpRepresentation()

Gets the string contained value in XMP format.

Returns: java.lang.String - Returns the string contained value in XMP format.