Enum ColorMatrixOperation

Enum ColorMatrixOperation

Namespace: Aspose.Svg.Builder
Assembly: Aspose.SVG.dll (25.5.0)

Specifies the type of operation to be applied in a color matrix filter.

[ComVisible(true)]
public enum ColorMatrixOperation

Fields

HueRotate = 2

Applies a hue rotation on the image.

The ‘hueRotate’ operation rotates the hue of each pixel’s color by a specified angle around the color wheel, allowing for dynamic color adjustments and effects.

LuminanceToAlpha = 3

Converts the colors of the image to grayscale based on their luminance.

The ’luminanceToAlpha’ operation creates a grayscale image based on the luminance (brightness) of each color, which can then be used for various masking and compositing operations.

Matrix = 0

Applies a matrix transformation to the color data.

The ‘matrix’ operation uses a 5x4 matrix to transform the RGBA color values of each pixel. This operation is highly versatile and can be used for complex color manipulations, including adjustments in brightness, contrast, and color balance.

Saturate = 1

Adjusts the saturation level of the image.

The ‘saturate’ operation modifies the saturation of colors in the image. A value of 0% is completely un-saturated (grayscale), while 100% represents no change to the image’s colors.

Remarks

The color matrix filter in SVG allows for various operations on the color data of an image. Each operation type manipulates the colors in a specific way, offering a range of visual effects.

 English