Method | Description | |
---|---|---|
CMYKtoColor ( |
Converts CMYK to RGB.
|
|
CMYKtoColor ( double c, double m, double y, double k ) : Color |
Converts CMYK to RGB.
|
|
CMYKtoColor ( float c, float m, float y, float k ) : Color |
Converts CMYK to RGB.
|
|
CMYKtoHSB ( double c, double m, double y, double k ) : |
Converts CMYK to HSB.
|
|
CMYKtoHSL ( double c, double m, double y, double k ) : |
Converts CMYK to HSL.
|
|
CMYKtoRGB ( |
Converts CMYK to RGB.
|
|
CMYKtoRGB ( double c, double m, double y, double k ) : RGB |
Converts CMYK to RGB.
|
|
CMYKtoYUV ( double c, double m, double y, double k ) : |
Converts CMYK to YUV.
|
|
GetColorDistance ( Color c1, Color c2 ) : double |
Gets the "distance" between two colors.
|
|
GetColorDistance ( double color1, double color2 ) : double |
Gets the "distance" between two colors. RGB colors must be normalized (eg. values in [0.0, 1.0]).
|
|
GetColorDistance ( double r1, double g1, double b1, double r2, double g2, double b2 ) : double |
Gets the "distance" between two colors. RGB colors must be normalized (eg. values in [0.0, 1.0]).
|
|
GetSpectrumColors ( ) : Color[] |
Gets visible spectrum colors.
|
|
GetSpectrumColors ( int alpha ) : Color[] |
Gets visible spectrum colors.
|
|
GetWheelColors ( int alpha ) : Color[] |
Gets visible colors (color wheel).
|
|
HSBtoCMYK ( double h, double s, double b ) : |
Converts HSB to CMYK.
|
|
HSBtoColor ( |
Converts HSB to Color.
|
|
HSBtoColor ( double h, double s, double b ) : Color |
Converts HSB to a .net Color.
|
|
HSBtoColor ( int h, int s, int b ) : Color |
Converts HSB to Color.
|
|
HSBtoHSL ( double h, double s, double b ) : |
Converts HSB to HSL.
|
|
HSBtoRGB ( |
Converts HSB to RGB.
|
|
HSBtoRGB ( double h, double s, double b ) : RGB |
Converts HSB to RGB.
|
|
HSBtoYUV ( double h, double s, double b ) : |
Converts HSB to CMYK.
|
|
HSLtoCMYK ( double h, double s, double l ) : |
Converts HSL to CMYK.
|
|
HSLtoColor ( |
Converts HSL to .net Color.
|
|
HSLtoColor ( double h, double s, double l ) : Color |
Converts HSL to .net Color.
|
|
HSLtoHSB ( double h, double s, double l ) : |
Converts HSL to HSB.
|
|
HSLtoRGB ( |
Converts HSL to RGB.
|
|
HSLtoRGB ( double h, double s, double l ) : RGB |
Converts HSL to RGB.
|
|
HSLtoYUV ( double h, double s, double l ) : |
Converts HSL to YUV.
|
|
HexToColor ( string hexColor ) : Color |
Converts a Hex color to a .net Color.
|
|
LabtoRGB ( |
Converts CIELab to RGB.
|
|
LabtoRGB ( double l, double a, double b ) : RGB |
Converts CIELab to RGB.
|
|
LabtoXYZ ( |
Converts CIELab to CIEXYZ.
|
|
LabtoXYZ ( double l, double a, double b ) : CIEXYZ |
Converts CIELab to CIEXYZ.
|
|
RGBToHex ( Color c ) : string |
Converts a RGB color format to an hexadecimal color.
|
|
RGBToHex ( int r, int g, int b ) : string |
Converts a RGB color format to an hexadecimal color.
|
|
RGBtoCMYK ( Color c ) : |
Converts RGB to CMYK
|
|
RGBtoCMYK ( RGB rgb ) : |
Converts RGB to CMYK
|
|
RGBtoCMYK ( int red, int green, int blue ) : |
Converts RGB to CMYK
|
|
RGBtoHSB ( Color c ) : |
Converts RGB to HSB.
|
|
RGBtoHSB ( RGB rgb ) : |
Converts RGB to HSB.
|
|
RGBtoHSB ( int red, int green, int blue ) : |
Converts RGB to HSB.
|
|
RGBtoHSL ( Color c ) : |
Converts Color to HSL.
|
|
RGBtoHSL ( RGB rgb ) : |
Converts RGB to HSL.
|
|
RGBtoHSL ( int red, int green, int blue ) : |
Converts RGB to HSL.
|
|
RGBtoLab ( RGB rgb ) : |
Converts RGB to CIELab.
|
|
RGBtoLab ( System color ) : |
Converts RGB to CIELab.
|
|
RGBtoLab ( int red, int green, int blue ) : |
Converts RGB to CIELab.
|
|
RGBtoXYZ ( Color c ) : CIEXYZ |
Converts RGB to CIEXYZ.
|
|
RGBtoXYZ ( RGB rgb ) : CIEXYZ |
Converts RGB to CIEXYZ.
|
|
RGBtoXYZ ( int red, int green, int blue ) : CIEXYZ |
Converts RGB to CIE XYZ (CIE 1931 color space)
|
|
RGBtoYUV ( Color c ) : |
Converts RGB to YUV.
|
|
RGBtoYUV ( RGB rgb ) : |
Converts RGB to YUV.
|
|
RGBtoYUV ( int red, int green, int blue ) : |
Converts RGB to YUV.
|
|
XYZtoLab ( CIEXYZ xyz ) : |
Converts CIEXYZ to CIELab structure.
|
|
XYZtoLab ( double x, double y, double z ) : |
Converts CIEXYZ to CIELab structure.
|
|
XYZtoRGB ( CIEXYZ xyz ) : RGB |
Converts CIEXYZ to RGB structure.
|
|
XYZtoRGB ( double x, double y, double z ) : RGB |
Converts CIEXYZ to RGB structure.
|
|
XYZtoYxy ( CIEXYZ xyz ) : |
Converts CIEXYZ to CIEYxy structure.
|
|
XYZtoYxy ( double x, double y, double z ) : |
Converts CIEXYZ to CIEYxy structure.
|
|
YUVtoCMYK ( double y, double u, double v ) : |
Converts YUV to CMYK.
|
|
YUVtoColor ( |
Converts YUV to a .net Color.
|
|
YUVtoColor ( double y, double u, double v ) : Color |
Converts YUV to a .net Color.
|
|
YUVtoHSB ( double y, double u, double v ) : |
Converts YUV to HSB.
|
|
YUVtoHSL ( double y, double u, double v ) : |
Converts YUV to HSL.
|
|
YUVtoRGB ( |
Converts YUV to RGB.
|
|
YUVtoRGB ( double y, double u, double v ) : RGB |
Converts YUV to RGB.
|
|
YxytoXYZ ( |
Converts CIEYxy to CIEXYZ structure.
|
|
YxytoXYZ ( double Y, double x, double y ) : CIEXYZ |
Converts CIEYxy to CIEXYZ structure.
|
Method | Description | |
---|---|---|
ColorSpaceHelper ( ) : System | ||
Fxyz ( double t ) : double |
XYZ to L*a*b* transformation function.
|
|
GetIntFromHex ( string strHex ) : int |
Gets the int equivalent for a hexadecimal value.
|
public static CMYKtoColor ( |
||
cmyk | ||
return | Color |
public static CMYKtoColor ( double c, double m, double y, double k ) : Color | ||
c | double | Cyan value (must be between 0 and 1). |
m | double | Magenta value (must be between 0 and 1). |
y | double | Yellow value (must be between 0 and 1). |
k | double | Black value (must be between 0 and 1). |
return | Color |
public static CMYKtoColor ( float c, float m, float y, float k ) : Color | ||
c | float | Cyan value (must be between 0 and 1). |
m | float | Magenta value (must be between 0 and 1). |
y | float | Yellow value (must be between 0 and 1). |
k | float | Black value (must be between 0 and 1). |
return | Color |
public static CMYKtoHSB ( double c, double m, double y, double k ) : |
||
c | double | |
m | double | |
y | double | |
k | double | |
return |
public static CMYKtoHSL ( double c, double m, double y, double k ) : |
||
c | double | |
m | double | |
y | double | |
k | double | |
return |
public static CMYKtoRGB ( double c, double m, double y, double k ) : RGB | ||
c | double | Cyan value (must be between 0 and 1). |
m | double | Magenta value (must be between 0 and 1). |
y | double | Yellow value (must be between 0 and 1). |
k | double | Black value (must be between 0 and 1). |
return | RGB |
public static CMYKtoYUV ( double c, double m, double y, double k ) : |
||
c | double | |
m | double | |
y | double | |
k | double | |
return |
public static GetColorDistance ( Color c1, Color c2 ) : double | ||
c1 | Color | |
c2 | Color | |
return | double |
public static GetColorDistance ( double color1, double color2 ) : double | ||
color1 | double | First color [r,g,b] |
color2 | double | Second color [r,g,b] |
return | double |
public static GetColorDistance ( double r1, double g1, double b1, double r2, double g2, double b2 ) : double | ||
r1 | double | First color red component. |
g1 | double | First color green component. |
b1 | double | First color blue component. |
r2 | double | Second color red component. |
g2 | double | Second color green component. |
b2 | double | Second color blue component. |
return | double |
public static GetSpectrumColors ( ) : Color[] | ||
return | Color[] |
public static GetSpectrumColors ( int alpha ) : Color[] | ||
alpha | int | The alpha value used for each colors. |
return | Color[] |
public static GetWheelColors ( int alpha ) : Color[] | ||
alpha | int | /// The alpha value used for each colors. /// |
return | Color[] |
public static HSBtoCMYK ( double h, double s, double b ) : |
||
h | double | |
s | double | |
b | double | |
return |
public static HSBtoColor ( double h, double s, double b ) : Color | ||
h | double | Hue value (must be between 0 and 360). |
s | double | Saturation value (must be between 0 and 1). |
b | double | Brightness value (must be between 0 and 1). |
return | Color |
public static HSBtoColor ( int h, int s, int b ) : Color | ||
h | int | Hue value. |
s | int | Saturation value. |
b | int | Brightness value. |
return | Color |
public static HSBtoHSL ( double h, double s, double b ) : |
||
h | double | |
s | double | |
b | double | |
return |
public static HSBtoRGB ( double h, double s, double b ) : RGB | ||
h | double | |
s | double | |
b | double | |
return | RGB |
public static HSBtoYUV ( double h, double s, double b ) : |
||
h | double | |
s | double | |
b | double | |
return |
public static HSLtoCMYK ( double h, double s, double l ) : |
||
h | double | |
s | double | |
l | double | |
return |
public static HSLtoColor ( |
||
hsl | The HSL structure to convert. | |
return | Color |
public static HSLtoColor ( double h, double s, double l ) : Color | ||
h | double | |
s | double | |
l | double | |
return | Color |
public static HSLtoHSB ( double h, double s, double l ) : |
||
h | double | |
s | double | |
l | double | |
return |
public static HSLtoRGB ( |
||
hsl | The HSL structure to convert. | |
return | RGB |
public static HSLtoRGB ( double h, double s, double l ) : RGB | ||
h | double | Hue, must be in [0, 360]. |
s | double | Saturation, must be in [0, 1]. |
l | double | Luminance, must be in [0, 1]. |
return | RGB |
public static HSLtoYUV ( double h, double s, double l ) : |
||
h | double | |
s | double | |
l | double | |
return |
public static HexToColor ( string hexColor ) : Color | ||
hexColor | string | The desired hexadecimal color to convert. |
return | Color |
public static LabtoRGB ( double l, double a, double b ) : RGB | ||
l | double | |
a | double | |
b | double | |
return | RGB |
public static LabtoXYZ ( |
||
lab | ||
return | CIEXYZ |
public static LabtoXYZ ( double l, double a, double b ) : CIEXYZ | ||
l | double | |
a | double | |
b | double | |
return | CIEXYZ |
public static RGBToHex ( int r, int g, int b ) : string | ||
r | int | The Red value. |
g | int | The Green value. |
b | int | The Blue value. |
return | string |
public static RGBtoCMYK ( int red, int green, int blue ) : |
||
red | int | Red vaue must be in [0, 255]. |
green | int | Green vaue must be in [0, 255]. |
blue | int | Blue vaue must be in [0, 255]. |
return |
public static RGBtoHSB ( int red, int green, int blue ) : |
||
red | int | |
green | int | |
blue | int | |
return |
public static RGBtoHSL ( int red, int green, int blue ) : |
||
red | int | Red value, must be in [0,255]. |
green | int | Green value, must be in [0,255]. |
blue | int | Blue value, must be in [0,255]. |
return |
public static RGBtoLab ( System color ) : |
||
color | System | |
return |
public static RGBtoLab ( int red, int green, int blue ) : |
||
red | int | |
green | int | |
blue | int | |
return |
public static RGBtoXYZ ( int red, int green, int blue ) : CIEXYZ | ||
red | int | Red must be in [0, 255]. |
green | int | Green must be in [0, 255]. |
blue | int | Blue must be in [0, 255]. |
return | CIEXYZ |
public static RGBtoYUV ( int red, int green, int blue ) : |
||
red | int | red must be in [0, 255]. |
green | int | green must be in [0, 255]. |
blue | int | blue must be in [0, 255]. |
return |
public static XYZtoLab ( CIEXYZ xyz ) : |
||
xyz | CIEXYZ | |
return |
public static XYZtoLab ( double x, double y, double z ) : |
||
x | double | |
y | double | |
z | double | |
return |
public static XYZtoRGB ( double x, double y, double z ) : RGB | ||
x | double | |
y | double | |
z | double | |
return | RGB |
public static XYZtoYxy ( CIEXYZ xyz ) : |
||
xyz | CIEXYZ | |
return |
public static XYZtoYxy ( double x, double y, double z ) : |
||
x | double | |
y | double | |
z | double | |
return |
public static YUVtoCMYK ( double y, double u, double v ) : |
||
y | double | Y must be in [0, 1]. |
u | double | U must be in [-0.436, +0.436]. |
v | double | V must be in [-0.615, +0.615]. |
return |
public static YUVtoColor ( double y, double u, double v ) : Color | ||
y | double | Y must be in [0, 1]. |
u | double | U must be in [-0.436, +0.436]. |
v | double | V must be in [-0.615, +0.615]. |
return | Color |
public static YUVtoHSB ( double y, double u, double v ) : |
||
y | double | Y must be in [0, 1]. |
u | double | U must be in [-0.436, +0.436]. |
v | double | V must be in [-0.615, +0.615]. |
return |
public static YUVtoHSL ( double y, double u, double v ) : |
||
y | double | Y must be in [0, 1]. |
u | double | U must be in [-0.436, +0.436]. |
v | double | V must be in [-0.615, +0.615]. |
return |
public static YUVtoRGB ( double y, double u, double v ) : RGB | ||
y | double | Y must be in [0, 1]. |
u | double | U must be in [-0.436, +0.436]. |
v | double | V must be in [-0.615, +0.615]. |
return | RGB |
public static YxytoXYZ ( |
||
Yxy | ||
return | CIEXYZ |
public static YxytoXYZ ( double Y, double x, double y ) : CIEXYZ | ||
Y | double | |
x | double | |
y | double | |
return | CIEXYZ |