ColorTransformOperation

ColorTransformOperation enumeration

Defines color transform operation.

public enum ColorTransformOperation

Values

NameValueDescription
Tint0Tints the color. Parameter is in range between 0 (original color) and 1 (white).
Shade1Shades the color. Parameter is in range between 0 (original color) and 1 (black).
Complement2Changes the color to a RGB complementary one. m = Max(r, g, b); r = m - r; g = m - g; b = m - b;
Inverse3Changes the color to an inverted color. r = 1 - r; g = 1 - g; b = 1 - b;
Grayscale4Changes the color to a gray one with same lightness. Parameter ignored.
SetAlpha5Defines an alpha component of the color. Parameter is in range between 0 (transparent) and 1 (opaque).
AddAlpha6Adds a parameter’s value to an alpha component of the color. Parameter is in range between -1 and 1.
MultiplyAlpha7Multiplies an alpha component to a parameter’s value.
SetHue8Changes a hue component of the color to a parameter’s value. Parameter is in range between 0 and 360.
AddHue9Adds parameter’s value to hue component of the color. Parameter is in range between -360 and 360.
MultiplyHue10Multiplies a hue component to a parameter’s value.
SetSaturation11Changes a saturation component of the color to a parameter’s value. Parameter is in range between 0 and 1.
AddSaturation12Adds a parameter’s value to a saturation component of the color. Parameter is in range between -1 and 1.
MultiplySaturation13Multiplies a saturation component to a parameter’s value.
SetLuminance14Changes a luminance component of the color to a parameter’s value. Parameter is in range between 0 and 1.
AddLuminance15Adds a parameter’s value to a luminance component of the color. Parameter is in range between -1 and 1.
MultiplyLuminance16Multiplies a luminance component to a parameter’s value.
SetRed17Changes a red component of the color to a parameter’s value. Parameter is in range between 0 and 1.
AddRed18Adds a parameter’s value to a red component of the color. Parameter is in range between -1 and 1.
MultiplyRed19Multiplies a red component to a parameter.
SetGreen20Changes a green component of the color to a parameter’s value value. Parameter is in range between 0 and 1.
AddGreen21Adds a parameter to a green component of the color. Parameter is in range between -1 and 1.
MultiplyGreen22Multiplies a green component of the color to a parameter’s value.
SetBlue23Changes a blue component of the color to a parameter’s value. Parameter is in range between 0 and 360.
AddBlue24Adds a parameter’s value to a blue component of the color. Parameter is in range between -1 and 1.
MultiplyBlue25Multiplies a blue component of the color to a parameter’s value.
Gamma26Gamma correction. Parameter ignored.
InverseGamma27Inverse gamma correction. Parameter ignored.

See Also