Struct Cmyk
Represents an CMYK (cyan, magenta, yellow, keyline) color.
Implements
Inherited Members
Namespace: SixLabors.ImageSharp.ColorSpaces
Assembly: SixLabors.ImageSharp.dll
Syntax
public readonly struct Cmyk : IEquatable<Cmyk>
Constructors
| Improve this Doc View SourceCmyk(Vector4)
Initializes a new instance of the Cmyk struct.
Declaration
public Cmyk(Vector4 vector)
Parameters
Type | Name | Description |
---|---|---|
Vector4 | vector | The vector representing the c, m, y, k components. |
Cmyk(Single, Single, Single, Single)
Initializes a new instance of the Cmyk struct.
Declaration
public Cmyk(float c, float m, float y, float k)
Parameters
Type | Name | Description |
---|---|---|
Single | c | The cyan component. |
Single | m | The magenta component. |
Single | y | The yellow component. |
Single | k | The keyline black component. |
Fields
| Improve this Doc View SourceC
Gets the cyan color component.
Declaration
public readonly float C
Field Value
Type | Description |
---|---|
Single |
K
Gets the keyline black color component.
Declaration
public readonly float K
Field Value
Type | Description |
---|---|
Single |
M
Gets the magenta color component.
Declaration
public readonly float M
Field Value
Type | Description |
---|---|
Single |
Y
Gets the yellow color component.
Declaration
public readonly float Y
Field Value
Type | Description |
---|---|
Single |
Methods
| Improve this Doc View SourceEquals(Cmyk)
Declaration
public readonly bool Equals(Cmyk other)
Parameters
Type | Name | Description |
---|---|---|
Cmyk | other |
Returns
Type | Description |
---|---|
Boolean |
Equals(Object)
Declaration
public override readonly bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj |
Returns
Type | Description |
---|---|
Boolean |
Overrides
| Improve this Doc View SourceGetHashCode()
Declaration
public override readonly int GetHashCode()
Returns
Type | Description |
---|---|
Int32 |
Overrides
| Improve this Doc View SourceToString()
Declaration
public override readonly string ToString()
Returns
Type | Description |
---|---|
String |
Overrides
Operators
| Improve this Doc View SourceEquality(Cmyk, Cmyk)
Compares two Cmyk objects for equality.
Declaration
public static bool operator ==(Cmyk left, Cmyk right)
Parameters
Type | Name | Description |
---|---|---|
Cmyk | left | The Cmyk on the left side of the operand. |
Cmyk | right | The Cmyk on the right side of the operand. |
Returns
Type | Description |
---|---|
Boolean | True if the current left is equal to the |
Inequality(Cmyk, Cmyk)
Compares two Cmyk objects for inequality.
Declaration
public static bool operator !=(Cmyk left, Cmyk right)
Parameters
Type | Name | Description |
---|---|---|
Cmyk | left | The Cmyk on the left side of the operand. |
Cmyk | right | The Cmyk on the right side of the operand. |
Returns
Type | Description |
---|---|
Boolean | True if the current left is unequal to the |