Class ColorantBase

Class ColorantBase

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

Represents XMP Colorant type.

[JsonObject(MemberSerialization.OptIn)]
public abstract class ColorantBase : ComplexTypeBase, IXmpType, ICloneable

Inheritance

object XmpTypeBase ComplexTypeBase ColorantBase

Derived

ColorantCmyk , ColorantLab , ColorantRgb

Implements

IXmpType , ICloneable

Inherited Members

ComplexTypeBase.VValues , ComplexTypeBase.GetXmpRepresentation() , ComplexTypeBase.Add(string, object) , ComplexTypeBase.Prefix , ComplexTypeBase.NamespaceUri , XmpTypeBase.GetXmpRepresentation() , XmpTypeBase.ToString() , XmpTypeBase.Clone() , object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Constructors

ColorantBase(ColorMode)

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

protected ColorantBase(ColorMode mode)

Parameters

mode ColorMode

The color mode.

Properties

ColorType

Gets or sets the type of the color.

[JsonProperty]
public ColorType ColorType { get; set; }

Property Value

ColorType

Mode

Gets Aspose.Imaging.Xmp.Types.Complex.Colorant.ColorMode.

public ColorMode Mode { get; }

Property Value

ColorMode

SwatchName

Gets or sets the name of the swatch.

[JsonProperty]
public string SwatchName { get; set; }

Property Value

string

Methods

GetXmpRepresentation()

Gets the string contained value in XMP format.

public override string GetXmpRepresentation()

Returns

string

Returns the string contained value in XMP format.

 English