SVGBuilderExtensions.AddFeComponentTransfer

AddFeComponentTransfer<TBuilder>(this TBuilder, Action<SVGFEFuncAElementBuilder>, Action<SVGFEFuncRElementBuilder>, Action<SVGFEFuncGElementBuilder>, Action<SVGFEFuncBElementBuilder>, 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<SVGFEComponentTransferElementBuilder>)

Adds an ‘feComponentTransfer’ element to the SVG builder, allowing for component-wise remapping of data for color channels.

public static TBuilder AddFeComponentTransfer<TBuilder>(this TBuilder builder, 
    Action<SVGFEFuncAElementBuilder> a = null, Action<SVGFEFuncRElementBuilder> r = null, 
    Action<SVGFEFuncGElementBuilder> g = null, Action<SVGFEFuncBElementBuilder> b = 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<SVGFEComponentTransferElementBuilder> 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 ‘feComponentTransfer’ element will be added.
aAn action to configure the ‘feFuncA’ component for the alpha channel. Optional parameter.
rAn action to configure the ‘feFuncR’ component for the red channel. Optional parameter.
gAn action to configure the ‘feFuncG’ component for the green channel. Optional parameter.
bAn action to configure the ‘feFuncB’ component for the blue channel. Optional parameter.
inThe input for the component transfer 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 SVGFEComponentTransferElementBuilder.

Return Value

The builder instance, allowing for method chaining.

See Also


AddFeComponentTransfer<TBuilder>(this TBuilder, Action<SVGFEComponentTransferElementBuilder>)

Adds an ‘feComponentTransfer’ element configuration to the builder. This element performs component-wise remapping of data for color channels.

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

Return Value

The builder instance for chaining.

See Also