Class ColorantCmyk
Namespace: Aspose.Imaging.Xmp.Types.Complex.Colorant
Assembly: Aspose.Imaging.dll (25.2.0)
Represents CMYK Colorant.
[JsonObject(MemberSerialization.OptIn)]
public sealed class ColorantCmyk : ColorantBase, IXmpType, ICloneable
Inheritance
object ← XmpTypeBase ← ComplexTypeBase ← ColorantBase ← ColorantCmyk
Implements
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
ColorantCmyk()
Initializes a new instance of the Aspose.Imaging.Xmp.Types.Complex.Colorant.ColorantCmyk class.
[JsonConstructor]
public ColorantCmyk()
ColorantCmyk(float, float, float, float)
Initializes a new instance of the Aspose.Imaging.Xmp.Types.Complex.Colorant.ColorantCmyk class.
public ColorantCmyk(float black, float cyan, float magenta, float yellow)
Parameters
black
float
The black component value.
cyan
float
The cyan color component value.
magenta
float
The magenta component value.
yellow
float
The yellow component value.
Fields
ColorValueMax
Color max value in CMYK colorant.
public const float ColorValueMax = 100
Field Value
ColorValueMin
Color min value in CMYK colorant.
public const float ColorValueMin = 0
Field Value
Properties
Black
Gets or sets the black component value.
public float Black { get; set; }
Property Value
Cyan
Gets or sets the cyan component value.
public float Cyan { get; set; }
Property Value
Magenta
Gets or sets the magenta component value.
public float Magenta { get; set; }
Property Value
Yellow
Gets or sets the yellow component value.
public float Yellow { 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.