Class ColorantBase
Namespace: Aspose.Imaging.Xmp.Types.Complex.Colorant
Assembly: Aspose.Imaging.dll (25.7.0)
Represents XMP Colorant type.
[JsonObject(MemberSerialization.OptIn)]
public abstract class ColorantBase : ComplexTypeBase, Aspose.Words.IXmpType, ICloneable
{
}
Inheritance
object ← XmpTypeBase ← ComplexTypeBase ← ColorantBase
Derived
ColorantCmyk , ColorantLab , ColorantRgb
Implements
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.
public enum ColorType
{
Red,
Green,
Blue
}
[JsonProperty(PropertyName = "colorType")]
public ColorType ColorType { get; set; }
Property Value
Mode
Gets Aspose.Imaging.Xmp.Types.Complex.Colorant.ColorMode.
public ColorMode Mode
{
get;
}
Property Value
SwatchName
Gets or sets the name of the swatch.
[JsonProperty]
public string SwatchName
{
get;
set;
}
Property Value
Methods
GetXmpRepresentation()
Gets the string contained value in XMP format.
public override string GetXmpRepresentation()
{
}
Returns
Returns the string contained value in XMP format.