ConversionExtensions

Static Class in Zigurous.ColorPro

Declaration

public static class ConversionExtensions

Description

Extension methods for converting colors to different color models.

Extension Methods

To<T>Converts the color to a specified component model.
ToColor<T>Converts the components to a color with a specified alpha.
ToRGBConverts the color to RGB (red, green, blue) components in the range [0..1].
ToRGB255Converts the color to RGB (red, green, blue) components in the range [0..255].
ToRGBAConverts the color to RGBA (red, green, blue, alpha) components in the range [0..1].
ToRGBA255Converts the color to RGBA (red, green, blue, alpha) components in the range [0..255].
ToARGBConverts the color to ARGB (alpha, red, green, blue) components in the range [0..1].
ToARGB255Converts the color to ARGB (alpha, red, green, blue) components in the range [0..255].
ToCMYKConverts the color to CMYK (cyan, magenta, yellow, black) components in the range [0..1].
ToHSBConverts the color to HSB (hue, saturation, brightness) components in the range [0..1].
ToHSIConverts the color to HSI (hue, saturation, intensity) components in the range [0..1].
ToHSLConverts the color to HSL (hue, saturation, lightness) components in the range [0..1].
ToHSVConverts the color to HSV (hue, saturation, value) components in the range [0..1].
ToLMSConverts the color to LMS components.
ToHunterLabConverts the color to Hunter Lab components.
ToLabConverts the color to CIE LAB components.
ToLuvConverts the color to CIE LUV components.
ToLCh_abConverts the color to CIE LCh(ab) components.
ToLCh_uvConverts the color to CIE LCh(uv) components.
ToUCSConverts the color to CIE UCS components.
ToUVWConverts the color to CIE UVW components.
ToxyYConverts the color to CIE xyY components.
ToXYZConverts the color to CIE XYZ components.
ToYCbCrConverts the color to Y′CbCr components.
ToYPbPrConverts the color to Y′PbPr components.
ToYIQConverts the color to Y′IQ components.
ToYUVConverts the color to Y′UV components.