ColorantRgb Class

Summary: Represents RGB Colorant.

Module: aspose.imaging.xmp.types.complex.colorant

Full Name: aspose.imaging.xmp.types.complex.colorant.ColorantRgb

Inheritance: IXmpType, ColorantBase

Aspose.Imaging Version: 24.5.0

Constructors

NameDescription
ColorantRgb()Initializes a new instance of the ColorantRgb class.
ColorantRgb(red, green, blue)Initializes a new instance of the ColorantRgb class.

Properties

NameTypeAccessDescription
bluebyter/wGets or sets the blue component value.
color_typeColorTyper/wGets or sets the type of the color.
greenbyter/wGets or sets the green component value.
modeColorModerGets ColorMode.
namespace_uristringrGets the default namespace URI.
prefixstringrGets the prefix.
redbyter/wGets or sets the red component value.
swatch_namestringr/wGets or sets the name of the swatch.

Methods

NameDescription
get_xmp_representation()Gets the string contained value in XMP format.

Constructor: ColorantRgb()

 ColorantRgb() 

Initializes a new instance of the ColorantRgb class.

Constructor: ColorantRgb(red, green, blue)

 ColorantRgb(red, green, blue) 

Initializes a new instance of the ColorantRgb class.

Parameters:

ParameterTypeDescription
redbyteThe red component value.
greenbyteThe green component value.
bluebyteThe blue component value.

Method: get_xmp_representation()

 get_xmp_representation() 

Gets the string contained value in XMP format.

Returns

TypeDescription
stringReturns the string contained value in XMP format.