ColorTransformOperation enumeration

ColorTransformOperation enumeration

Defines color transform operation.

The ColorTransformOperation type exposes the following members:

Fields

FieldDescription
TINTTints the color. Parameter is in range between 0 (original color) and 1 (white).
SHADEShades the color. Parameter is in range between 0 (original color) and 1 (black).
COMPLEMENTChanges the color to a RGB complementary one.
m = Max(r, g, b);
r = m - r;
g = m - g;
b = m - b;
INVERSEChanges the color to an inverted color.
r = 1 - r;
g = 1 - g;
b = 1 - b;
GRAYSCALEChanges the color to a gray one with same lightness. Parameter ignored.
SET_ALPHADefines an alpha component of the color. Parameter is in range between 0 (transparent) and 1 (opaque).
ADD_ALPHAAdds a parameter’s value to an alpha component of the color. Parameter is in range between -1 and 1.
MULTIPLY_ALPHAMultiplies an alpha component to a parameter’s value.
SET_HUEChanges a hue component of the color to a parameter’s value. Parameter is in range between 0 and 360.
ADD_HUEAdds parameter’s value to hue component of the color. Parameter is in range between -360 and 360.
MULTIPLY_HUEMultiplies a hue component to a parameter’s value.
SET_SATURATIONChanges a saturation component of the color to a parameter’s value. Parameter is in range between 0 and 1.
ADD_SATURATIONAdds a parameter’s value to a saturation component of the color. Parameter is in range between -1 and 1.
MULTIPLY_SATURATIONMultiplies a saturation component to a parameter’s value.
SET_LUMINANCEChanges a luminance component of the color to a parameter’s value. Parameter is in range between 0 and 1.
ADD_LUMINANCEAdds a parameter’s value to a luminance component of the color. Parameter is in range between -1 and 1.
MULTIPLY_LUMINANCEMultiplies a luminance component to a parameter’s value.
SET_REDChanges a red component of the color to a parameter’s value. Parameter is in range between 0 and 1.
ADD_REDAdds a parameter’s value to a red component of the color. Parameter is in range between -1 and 1.
MULTIPLY_REDMultiplies a red component to a parameter.
SET_GREENChanges a green component of the color to a parameter’s value value. Parameter is in range between 0 and 1.
ADD_GREENAdds a parameter to a green component of the color. Parameter is in range between -1 and 1.
MULTIPLY_GREENMultiplies a green component of the color to a parameter’s value.
SET_BLUEChanges a blue component of the color to a parameter’s value. Parameter is in range between 0 and 360.
ADD_BLUEAdds a parameter’s value to a blue component of the color. Parameter is in range between -1 and 1.
MULTIPLY_BLUEMultiplies a blue component of the color to a parameter’s value.
GAMMAGamma correction. Parameter ignored.
INVERSE_GAMMAInverse gamma correction. Parameter ignored.

See Also