SVGBuilderExtensions.AddFeColorMatrix

AddFeColorMatrix<TBuilder>(this TBuilder, ColorMatrixOperation, double[], OneOf<string, FilterInput>, string, OneOf<double, (double, LengthType)>, OneOf<double, (double, LengthType)>, OneOf<double, (double, LengthType)>, OneOf<double, (double, LengthType)>, OneOf<Color, Paint, string>, OneOf<Color, Paint, string>, string, Action<SVGFEColorMatrixElementBuilder>)

Adds an ‘feColorMatrix’ element to the SVG builder, specifying the type of color matrix operation and various other properties for the filter effect.

public static TBuilder AddFeColorMatrix<TBuilder>(this TBuilder builder, ColorMatrixOperation type, 
    double[] values = null, OneOf<string, FilterInput> @in = null, string result = null, 
    OneOf<double, (double, LengthType)> x = null, OneOf<double, (double, LengthType)> y = null, 
    OneOf<double, (double, LengthType)> width = null, 
    OneOf<double, (double, LengthType)> height = null, OneOf<Color, Paint, string> fill = null, 
    OneOf<Color, Paint, string> stroke = null, string id = null, 
    Action<SVGFEColorMatrixElementBuilder> extend = null)
    where TBuilder : ISVGElementBuilder, IFilterPrimitiveElementBuilder
ParameterDescription
TBuilderThe type of the SVG element builder, facilitating fluent API usage.
builderThe SVG builder instance to which the ‘feColorMatrix’ element will be added.
typeThe type of color matrix operation to be applied.
valuesThe values for the color matrix operation. Optional parameter.
inThe input for the color matrix effect. Can be a string or a FilterInput. Optional parameter.
resultThe result identifier for this filter primitive. Optional parameter.
xThe x-coordinate of the filter primitive subregion. Can be a double or a ValueTuple with LengthType. Optional parameter.
yThe y-coordinate of the filter primitive subregion. Can be a double or a ValueTuple with LengthType. Optional parameter.
widthThe width of the filter primitive subregion. Can be a double or a ValueTuple with LengthType. Optional parameter.
heightThe height of the filter primitive subregion. Can be a double or a ValueTuple with LengthType. Optional parameter.
fillThe fill color, paint or paint server id for the element. Optional parameter.
strokeThe stroke color, paint or paint server id for the element. Optional parameter.
idThe unique identifier for the filter primitive element. Optional parameter.
extendAn optional action to further configure the SVGFEColorMatrixElementBuilder.

Return Value

The builder instance, allowing for method chaining.

See Also


AddFeColorMatrix<TBuilder>(this TBuilder, Action<SVGFEColorMatrixElementBuilder>)

Adds an ‘feColorMatrix’ element configuration to the builder. This element applies a matrix transformation to the color and alpha values of every pixel.

public static TBuilder AddFeColorMatrix<TBuilder>(this TBuilder builder, 
    Action<SVGFEColorMatrixElementBuilder> configure)
    where TBuilder : ISVGElementBuilder, IFilterPrimitiveElementBuilder
ParameterDescription
TBuilderThe type of the SVG element builder.
builderThe builder instance.
configureThe configuration action for the ‘feColorMatrix’ element.

Return Value

The builder instance for chaining.

See Also