ColorTransformOperation
Inheritance: java.lang.Object, com.aspose.ms.System.ValueType, com.aspose.ms.System.Enum
public final class ColorTransformOperation extends System.Enum
Defines color transform operation.
Fields
| Field | Description |
|---|---|
| Tint | Tints the color. |
| Shade | Shades the color. |
| Complement | Changes the color to a RGB complementary one. |
| Inverse | Changes the color to an inverted color. |
| Grayscale | Changes the color to a gray one with same lightness. |
| SetAlpha | Defines an alpha component of the color. |
| AddAlpha | Adds a parameter’s value to an alpha component of the color. |
| MultiplyAlpha | Multiplies an alpha component to a parameter’s value. |
| SetHue | Changes a hue component of the color to a parameter’s value. |
| AddHue | Adds parameter’s value to hue component of the color. |
| MultiplyHue | Multiplies a hue component to a parameter’s value. |
| SetSaturation | Changes a saturation component of the color to a parameter’s value. |
| AddSaturation | Adds a parameter’s value to a saturation component of the color. |
| MultiplySaturation | Multiplies a saturation component to a parameter’s value. |
| SetLuminance | Changes a luminance component of the color to a parameter’s value. |
| AddLuminance | Adds a parameter’s value to a luminance component of the color. |
| MultiplyLuminance | Multiplies a luminance component to a parameter’s value. |
| SetRed | Changes a red component of the color to a parameter’s value. |
| AddRed | Adds a parameter’s value to a red component of the color. |
| MultiplyRed | Multiplies a red component to a parameter. |
| SetGreen | Changes a green component of the color to a parameter’s value value. |
| AddGreen | Adds a parameter to a green component of the color. |
| MultiplyGreen | Multiplies a green component of the color to a parameter’s value. |
| SetBlue | Changes a blue component of the color to a parameter’s value. |
| AddBlue | Adds a parameter’s value to a blue component of the color. |
| MultiplyBlue | Multiplies a blue component of the color to a parameter’s value. |
| Gamma | Gamma correction. |
| InverseGamma | Inverse gamma correction. |
Tint
public static final int Tint
Tints the color. Parameter is in range between 0 (original color) and 1 (white).
Shade
public static final int Shade
Shades the color. Parameter is in range between 0 (original color) and 1 (black).
Complement
public static final int Complement
Changes the color to a RGB complementary one. m = Max(r, g, b); r = m - r; g = m - g; b = m - b;
Inverse
public static final int Inverse
Changes the color to an inverted color. r = 1 - r; g = 1 - g; b = 1 - b;
Grayscale
public static final int Grayscale
Changes the color to a gray one with same lightness. Parameter ignored.
SetAlpha
public static final int SetAlpha
Defines an alpha component of the color. Parameter is in range between 0 (transparent) and 1 (opaque).
AddAlpha
public static final int AddAlpha
Adds a parameter’s value to an alpha component of the color. Parameter is in range between -1 and 1.
MultiplyAlpha
public static final int MultiplyAlpha
Multiplies an alpha component to a parameter’s value.
SetHue
public static final int SetHue
Changes a hue component of the color to a parameter’s value. Parameter is in range between 0 and 360.
AddHue
public static final int AddHue
Adds parameter’s value to hue component of the color. Parameter is in range between -360 and 360.
MultiplyHue
public static final int MultiplyHue
Multiplies a hue component to a parameter’s value.
SetSaturation
public static final int SetSaturation
Changes a saturation component of the color to a parameter’s value. Parameter is in range between 0 and 1.
AddSaturation
public static final int AddSaturation
Adds a parameter’s value to a saturation component of the color. Parameter is in range between -1 and 1.
MultiplySaturation
public static final int MultiplySaturation
Multiplies a saturation component to a parameter’s value.
SetLuminance
public static final int SetLuminance
Changes a luminance component of the color to a parameter’s value. Parameter is in range between 0 and 1.
AddLuminance
public static final int AddLuminance
Adds a parameter’s value to a luminance component of the color. Parameter is in range between -1 and 1.
MultiplyLuminance
public static final int MultiplyLuminance
Multiplies a luminance component to a parameter’s value.
SetRed
public static final int SetRed
Changes a red component of the color to a parameter’s value. Parameter is in range between 0 and 1.
AddRed
public static final int AddRed
Adds a parameter’s value to a red component of the color. Parameter is in range between -1 and 1.
MultiplyRed
public static final int MultiplyRed
Multiplies a red component to a parameter.
SetGreen
public static final int SetGreen
Changes a green component of the color to a parameter’s value value. Parameter is in range between 0 and 1.
AddGreen
public static final int AddGreen
Adds a parameter to a green component of the color. Parameter is in range between -1 and 1.
MultiplyGreen
public static final int MultiplyGreen
Multiplies a green component of the color to a parameter’s value.
SetBlue
public static final int SetBlue
Changes a blue component of the color to a parameter’s value. Parameter is in range between 0 and 360.
AddBlue
public static final int AddBlue
Adds a parameter’s value to a blue component of the color. Parameter is in range between -1 and 1.
MultiplyBlue
public static final int MultiplyBlue
Multiplies a blue component of the color to a parameter’s value.
Gamma
public static final int Gamma
Gamma correction. Parameter ignored.
InverseGamma
public static final int InverseGamma
Inverse gamma correction. Parameter ignored.