Struct ChartCMYKColor
Describes the CMYK color.
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()
Namespace: Syncfusion.Windows.Forms.Chart
Assembly: Syncfusion.Chart.Base.dll
Syntax
public struct ChartCMYKColor
Properties
C
Gets the C component of color.
Declaration
public byte C { get; }
Property Value
Type | Description |
---|---|
System.Byte | The C component. |
K
Gets the K component of color.
Declaration
public byte K { get; }
Property Value
Type | Description |
---|---|
System.Byte | The K component. |
M
Gets the M component of color.
Declaration
public byte M { get; }
Property Value
Type | Description |
---|---|
System.Byte | The M component. |
Y
Gets the Y component of color.
Declaration
public byte Y { get; }
Property Value
Type | Description |
---|---|
System.Byte | The Y component. |
Methods
ConvertCMYKToRGB(ChartCMYKColor)
Converts the CMYK to RGB color.
Declaration
public static Color ConvertCMYKToRGB(ChartCMYKColor cmykColor)
Parameters
Type | Name | Description |
---|---|---|
ChartCMYKColor | cmykColor | Color of the cmyk. |
Returns
Type |
---|
System.Drawing.Color |
ConvertRGBToCMYK(Color)
Converts the RGB to CMYK color.
Declaration
public static ChartCMYKColor ConvertRGBToCMYK(Color rgbColor)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Color | rgbColor | Color of the RGB. |
Returns
Type |
---|
ChartCMYKColor |
FromCMYK(Byte, Byte, Byte, Byte)
Creates the CMYK color by the CMYK components.
Declaration
public static ChartCMYKColor FromCMYK(byte c, byte m, byte y, byte k)
Parameters
Type | Name | Description |
---|---|---|
System.Byte | c | The C component. |
System.Byte | m | The M component. |
System.Byte | y | The Y component. |
System.Byte | k | The K component. |
Returns
Type |
---|
ChartCMYKColor |
FromRBG(Byte, Byte, Byte)
Creates the CMYK color by the RBG components.
Declaration
public static ChartCMYKColor FromRBG(byte r, byte g, byte b)
Parameters
Type | Name | Description |
---|---|---|
System.Byte | r | The red component. |
System.Byte | g | The green component. |
System.Byte | b | The blue component. |
Returns
Type |
---|
ChartCMYKColor |
ToRGBColor()
Converts the CMYK color of the RGB.
Declaration
public Color ToRGBColor()
Returns
Type |
---|
System.Drawing.Color |