Enum ColorInterpolation
Namespace: Aspose.Svg.Builder
Assembly: Aspose.SVG.dll (25.5.0)
Specifies the color interpolation mode for SVG elements and filters.
[ComVisible(true)]
public enum ColorInterpolation
Fields
Auto = 0
Automatically determines the color interpolation mode.
When set to ‘auto’, the SVG renderer chooses the most suitable color interpolation mode based on the context, whether it’s for graphical elements or filter effects. This option offers a balance between performance and color accuracy.
LinearRGB = 2
Uses a linear RGB color space for color interpolation.
Linear RGB mode provides a more physically accurate color interpolation by linearizing the RGB values. This mode is preferable for precise color transitions and is particularly effective in complex filter effects and high-quality graphics rendering, though it may be more computationally intensive.
SRGB = 1
Uses the standard RGB color space (sRGB) for color interpolation.
The sRGB mode interpolates colors in the standard RGB color space. It’s widely used and ensures consistent color appearance across different devices and platforms. This mode is suitable for most general purposes in both graphical elements and filter effects.
Remarks
Color interpolation in SVG affects how colors are calculated and blended in both graphical elements and filter effects. Different modes can significantly impact the appearance of color transitions, gradients, and overall color rendering. This setting is crucial for achieving the desired visual outcome in SVG graphics.