SVGBuilderExtensions.AddFeComposite

AddFeComposite<TBuilder>(this TBuilder, CompositeOperator?, double?, double?, double?, double?, OneOf<string, FilterInput>, 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<SVGFECompositeElementBuilder>)

Adds an ‘feComposite’ element to the SVG builder, specifying the composite operation and various other properties for combining input images.

public static TBuilder AddFeComposite<TBuilder>(this TBuilder builder, 
    CompositeOperator? compositeOperator, double? k1, double? k2, double? k3, double? k4, 
    OneOf<string, FilterInput> @in = null, OneOf<string, FilterInput> in2 = 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<SVGFECompositeElementBuilder> 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 ‘feComposite’ element will be added.
compositeOperatorThe composite operator to be used. Optional parameter.
k1The first numeric value for the composite operation. Optional parameter.
k2The second numeric value for the composite operation. Optional parameter.
k3The third numeric value for the composite operation. Optional parameter.
k4The fourth numeric value for the composite operation. Optional parameter.
inThe first input for the composite effect. Can be a string or a FilterInput. Optional parameter.
in2The second input for the composite 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 SVGFECompositeElementBuilder.

Return Value

The builder instance, allowing for method chaining.

See Also


AddFeComposite<TBuilder>(this TBuilder, Action<SVGFECompositeElementBuilder>)

Adds an ‘feComposite’ element configuration to the builder. This element performs a bitwise combination of two input graphics.

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

Return Value

The builder instance for chaining.

See Also