Class CMYKColor
Class for ACMYK color conversions
Inheritance
System.Object
CMYKColor
Namespace: FastReport.Utils
Assembly: FastReport.dll
Syntax
public class CMYKColor
Constructors
CMYKColor(Byte, Byte, Byte, Byte)
Creates CMYKColor from ARGB values
Declaration
public CMYKColor(byte alpha, byte r, byte g, byte b)
Parameters
Type | Name | Description |
---|---|---|
System.Byte | alpha | |
System.Byte | r | |
System.Byte | g | |
System.Byte | b |
CMYKColor(Byte, Byte, Byte, Byte, Byte)
Creates CMYKColor from ACMYK values
Declaration
public CMYKColor(byte alpha, byte c, byte m, byte y, byte k)
Parameters
Type | Name | Description |
---|---|---|
System.Byte | alpha | |
System.Byte | c | |
System.Byte | m | |
System.Byte | y | |
System.Byte | k |
CMYKColor(Color)
Creates CMYKColor from Color value
Declaration
public CMYKColor(Color color)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Color | color |
CMYKColor(String)
Creates CMYKColor from string (comma separated values)
Declaration
public CMYKColor(string acmykString)
Parameters
Type | Name | Description |
---|---|---|
System.String | acmykString |
Fields
a
Alpha transparency 0..255
Declaration
public byte a
Field Value
Type | Description |
---|---|
System.Byte |
c
Cyan 0..100
Declaration
public byte c
Field Value
Type | Description |
---|---|
System.Byte |
k
Black 0..100
Declaration
public byte k
Field Value
Type | Description |
---|---|
System.Byte |
m
Magenta 0..100
Declaration
public byte m
Field Value
Type | Description |
---|---|
System.Byte |
y
Yellow 0..100
Declaration
public byte y
Field Value
Type | Description |
---|---|
System.Byte |
Methods
FromARGB(Byte, Byte, Byte, Byte)
Converts separate ARGB values in ACMYK
Declaration
public void FromARGB(byte alpha, byte R, byte G, byte B)
Parameters
Type | Name | Description |
---|---|---|
System.Byte | alpha | |
System.Byte | R | |
System.Byte | G | |
System.Byte | B |
FromColor(Color)
Converts Color value to ACMYK
Declaration
public void FromColor(Color color)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Color | color |
FromString(String)
Gets CMYKA from string.
Declaration
public void FromString(string color)
Parameters
Type | Name | Description |
---|---|---|
System.String | color |
ToArgb()
Returns ARGB color value
Declaration
public Color ToArgb()
Returns
Type | Description |
---|---|
System.Drawing.Color |
ToString()
Returns ACMYK as string.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
System.Object.ToString()