Components

Static Class in Zigurous.ColorPro

Declaration

public static class Components

Description

Functions for getting and setting color component values.

Extension Methods

CopyReturns a copy of the color.
GetRedReturns the red component of the color in the range [0..1].
GetRed255Returns the red component of the color in the range [0..255].
GetGreenReturns the green component of the color in the range [0..1].
GetGreen255Returns the green component of the color in the range [0..255].
GetBlueReturns the blue component of the color in the range [0..1].
GetBlue255Returns the blue component of the color in the range [0..255].
GetAlphaReturns the alpha component of the color in the range [0..1].
GetAlpha100Returns the alpha component of the color in the range [0..100].
GetAlpha255Returns the alpha component of the color in the range [0..255].
GetCyanReturns the cyan component of the color in the range [0..1] using the CMYK color model.
GetCyan100Returns the cyan component of the color in the range [0..100] using the CMYK color model.
GetMagentaReturns the magenta component of the color in the range [0..1] using the CMYK color model.
GetMagenta100Returns the magenta component of the color in the range [0..100] using the CMYK color model.
GetYellowReturns the yellow component of the color in the range [0..1] using the CMYK color model.
GetYellow100Returns the yellow component of the color in the range [0..100] using the CMYK color model.
GetBlackReturns the black component of the color in the range [0..1] using the CMYK color model.
GetBlack100Returns the black component of the color in the range [0..100] using the CMYK color model.
GetHueReturns the hue component of the color in the range [0..1].
GetHue360Returns the hue component of the color in the range [0..360].
GetSaturationVReturns the saturation component of the color in the range [0..1] using the HSV color model.
GetSaturationV100Returns the saturation component of the color in the range [0..100] using the HSV color model.
GetSaturationLReturns the saturation component of the color in the range [0..1] using the HSL color model.
GetSaturationL100Returns the saturation component of the color in the range [0..100] using the HSL color model.
GetValueReturns the "value" component of the color in the range [0..1] using the HSV color model.
GetValue100Returns the "value" component of the color in the range [0..100] using the HSV color model.
GetBrightnessReturns the brightness component of the color in the range [0..1] using the HSB color model.
GetBrightness100Returns the brightness component of the color in the range [0..100] using the HSB color model.
GetLightnessReturns the lightness component of the color in the range [0..1] using the HSL color model.
GetLightness100Returns the lightness component of the color in the range [0..100] using the HSL color model.
SetRedSets the red component of the color to the given value.
SetRed255Sets the red component of the color to the given value.
SetGreenSets the green component of the color to the given value.
SetGreen255Sets the green component of the color to the given value.
SetBlueSets the blue component of the color to the given value.
SetBlue255Sets the blue component of the color to the given value.
SetAlphaSets the alpha component of the color to the given value.
SetAlpha100Sets the alpha component of the color to the given value.
SetAlpha255Sets the alpha component of the color to the given value.
SetCyanSets the cyan component of the color to the given value using the CMYK color model.
SetCyan100Sets the cyan component of the color to the given value using the CMYK color model.
SetMagentaSets the magenta component of the color to the given value using the CMYK color model.
SetMagenta100Sets the magenta component of the color to the given value using the CMYK color model.
SetYellowSets the yellow component of the color to the given value using the CMYK color model.
SetYellow100Sets the yellow component of the color to the given value using the CMYK color model.
SetBlackSets the black component of the color to the given value using the CMYK color model.
SetBlack100Sets the black component of the color to the given value using the CMYK color model.
SetHueSets the hue component of the color to the given value.
SetHue360Sets the hue component of the color to the given value.
SetSaturationVSets the saturation component of the color to the given value using the HSV color model.
SetSaturationV100Sets the saturation component of the color to the given value using the HSV color model.
SetSaturationLSets the saturation component of the color to the given value using the HSL color model.
SetSaturationL100Sets the saturation component of the color to the given value using the HSL color model.
SetValueSets the "value" component of the color to the given value using the HSV color model.
SetValue100Sets the "value" component of the color to the given value using the HSV color model.
SetBrightnessSets the brightness component of the color to the given value using the HSB color model.
SetBrightness100Sets the brightness component of the color to the given value using the HSB color model.
SetLightnessSets the lightness component of the color to the given value using the HSL color model.
SetLightness100Sets the lightness component of the color to the given value using the HSL color model.
WithRedReturns a copy of the color with a new red component value.
WithRed255Returns a copy of the color with a new red component value.
WithGreenReturns a copy of the color with a new green component value.
WithGreen255Returns a copy of the color with a new green component value.
WithBlueReturns a copy of the color with a new blue component value.
WithBlue255Returns a copy of the color with a new blue component value.
WithAlphaReturns a copy of the color with a new alpha component value.
WithAlpha100Returns a copy of the color with a new alpha component value.
WithAlpha255Returns a copy of the color with a new alpha component value.
WithCyanReturns a copy of the color with a new cyan component value using the CMYK color model.
WithCyan100Returns a copy of the color with a new cyan component value using the CMYK color model.
WithMagentaReturns a copy of the color with a new magenta component value using the CMYK color model.
WithMagenta100Returns a copy of the color with a new magenta component value using the CMYK color model.
WithYellowReturns a copy of the color with a new yellow component value using the CMYK color model.
WithYellow100Returns a copy of the color with a new yellow component value using the CMYK color model.
WithBlackReturns a copy of the color with a new black component value using the CMYK color model.
WithBlack100Returns a copy of the color with a new black component value using the CMYK color model.
WithHueReturns a copy of the color with a new hue component value.
WithHue360Returns a copy of the color with a new hue component value.
WithSaturationVReturns a copy of the color with a new saturation component value using the HSV color model.
WithSaturationV100Returns a copy of the color with a new saturation component value using the HSV color model.
WithSaturationLReturns a copy of the color with a new saturation component value using the HSL color model.
WithSaturationL100Returns a copy of the color with a new saturation component value using the HSL color model.
WithValueReturns a copy of the color with a new "value" component value using the HSV color model.
WithValue100Returns a copy of the color with a new "value" component value using the HSV color model.
WithBrightnessReturns a copy of the color with a new brightness component value using the HSB color model.
WithBrightness100Returns a copy of the color with a new brightness component value using the HSB color model.
WithLightnessReturns a copy of the color with a new lightness component value using the HSL color model.
WithLightness100Returns a copy of the color with a new lightness component value using the HSL color model.