Defines color transform operation.
[Visual Basic]
Public Enum ColorTransformOperationEx
[C#]public enum ColorTransformOperationEx
Members
| Member Name | Description | Value |
| Tint | Tints the color. Parameter is in range between 0 (original color) and 1 (white). | 0 |
| Shade | Shades the color. Parameter is in range between 0 (original color) and 1 (black). | 1 |
| Complement | Changes the color to a RGB complementary one. m = Max(r, g, b); r = m - r; g = m - g; b = m - b; | 2 |
| Inverse | Changes the color to an inverted color. r = 1 - r; g = 1 - g; b = 1 - b; | 3 |
| Grayscale | Changes the color to a gray one with same lightness. Parameter ignored. | 4 |
| SetAlpha | Defines an alpha component of the color. Parameter is in range between 0 (transparent) and 1 (opaque). | 5 |
| AddAlpha | Adds a parameter's value to an alpha component of the color. Parameter is in range between -1 and 1. | 6 |
| MultiplyAlpha | Multiplies an alpha component to a parameter's value. | 7 |
| SetHue | Changes a hue component of the color to a parameter's value. Parameter is in range between 0 and 360. | 8 |
| AddHue | Adds parameter's value to hue component of the color. Parameter is in range between -360 and 360. | 9 |
| MultiplyHue | Multiplies a hue component to a parameter's value. | 10 |
| SetSaturation | Changes a saturation component of the color to a parameter's value. Parameter is in range between 0 and 1. | 11 |
| AddSaturation | Adds a parameter's value to a saturation component of the color. Parameter is in range between -1 and 1. | 12 |
| MultiplySaturation | Multiplies a saturation component to a parameter's value. | 13 |
| SetLuminance | Changes a luminance component of the color to a parameter's value. Parameter is in range between 0 and 1. | 14 |