Enum CompositingOperator

Enum CompositingOperator

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

Specifies the type of compositing operation to be applied in SVG masking operations.

[ComVisible(true)]
public enum CompositingOperator

Fields

Add = 0

Adds the color values of the source graphic to the destination graphic.

The ‘add’ operator combines the source and destination graphics by adding their color values. This can result in brighter colors where the graphics overlap.

Exclude = 3

Excludes the overlapping areas of the source and destination graphics.

The ’exclude’ operator displays the source and destination graphics, but makes the overlapping areas transparent, effectively excluding them from the mask.

Intersect = 2

Displays only the areas where both the source and destination graphics overlap.

The ‘intersect’ operator shows only the parts of the graphics that overlap each other. Non-overlapping areas of both the source and destination are made transparent.

Subtract = 1

Subtracts the color values of the source graphic from the destination graphic.

The ‘subtract’ operator creates a masking effect by subtracting the color values of the source graphic from those of the destination. This can produce darker areas where the graphics overlap.

Remarks

Compositing operators in SVG masks determine how different graphic elements are combined to create a mask effect. Each operator defines a unique method of blending or combining these elements to achieve various masking effects.

 English