Class ColorantRgb

Class ColorantRgb

Namespace: Aspose.Imaging.Xmp.Types.Complex.Colorant
Assembly: Aspose.Imaging.dll (25.2.0)

Represents RGB Colorant.

[JsonObject(MemberSerialization.OptIn)]
public sealed class ColorantRgb : ColorantBase, IXmpType, ICloneable

Inheritance

objectXmpTypeBaseComplexTypeBaseColorantBaseColorantRgb

Implements

IXmpType, ICloneable

Inherited Members

ColorantBase.GetXmpRepresentation(), ColorantBase.Mode, ColorantBase.SwatchName, ColorantBase.ColorType, ComplexTypeBase.GetXmpRepresentation(), ComplexTypeBase.Prefix, ComplexTypeBase.NamespaceUri, XmpTypeBase.GetXmpRepresentation(), XmpTypeBase.ToString(), XmpTypeBase.Clone(), object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors

ColorantRgb()

Initializes a new instance of the Aspose.Imaging.Xmp.Types.Complex.Colorant.ColorantRgb class.

[JsonConstructor]
public ColorantRgb()

ColorantRgb(byte, byte, byte)

Initializes a new instance of the Aspose.Imaging.Xmp.Types.Complex.Colorant.ColorantRgb class.

public ColorantRgb(byte red, byte green, byte blue)

Parameters

red byte

The red component value.

green byte

The green component value.

blue byte

The blue component value.

Properties

Blue

Gets or sets the blue component value.

[JsonProperty]
public byte Blue { get; set; }

Property Value

byte

Green

Gets or sets the green component value.

[JsonProperty]
public byte Green { get; set; }

Property Value

byte

Red

Gets or sets the red component value.

[JsonProperty]
public byte Red { get; set; }

Property Value

byte

Methods

GetXmpRepresentation()

Gets the string contained value in XMP format.

public override string GetXmpRepresentation()

Returns

string

Returns the string contained value in XMP format.