SVGBuilderExtensions.AddFeDisplacementMap
Contents
[
Hide
]AddFeDisplacementMap(this TBuilder, double?, ChannelSelector?, ChannelSelector?, 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<SVGFEDisplacementMapElementBuilder>) 
Adds an ‘feDisplacementMap’ element to the SVG builder, creating an effect that distorts an image based on the color data from a second source.
public static TBuilder AddFeDisplacementMap<TBuilder>(this TBuilder builder, double? scale = null, 
    ChannelSelector? xChannelSelector = default, ChannelSelector? yChannelSelector = default, 
    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<SVGFEDisplacementMapElementBuilder> extend = null)
    where TBuilder : ISVGElementBuilder, IFilterPrimitiveElementBuilder
| Parameter | Description | 
|---|---|
| TBuilder | The type of the SVG element builder, facilitating fluent API usage. | 
| builder | The SVG builder instance to which the ‘feDisplacementMap’ element will be added. | 
| scale | The scale factor determining the amount of displacement. Optional parameter. | 
| xChannelSelector | The channel of the in2 image to use for displacement along the x-axis. Optional parameter. | 
| yChannelSelector | The channel of the in2 image to use for displacement along the y-axis. Optional parameter. | 
| in | The input image to be displaced. Can be a string or a FilterInput. Optional parameter. | 
| in2 | The image providing the displacement data. Can be a string or a FilterInput. Optional parameter. | 
| result | The result identifier for this filter primitive. Optional parameter. | 
| x | The x-coordinate of the filter primitive subregion. Can be a double or a ValueTuple with LengthType. Optional parameter. | 
| y | The y-coordinate of the filter primitive subregion. Can be a double or a ValueTuple with LengthType. Optional parameter. | 
| width | The width of the filter primitive subregion. Can be a double or a ValueTuple with LengthType. Optional parameter. | 
| height | The height of the filter primitive subregion. Can be a double or a ValueTuple with LengthType. Optional parameter. | 
| fill | The fill color, paint or paint server id for the element. Optional parameter. | 
| stroke | The stroke color, paint or paint server id for the element. Optional parameter. | 
| id | The unique identifier for the filter primitive element. Optional parameter. | 
| extend | An optional action to further configure the SVGFEDisplacementMapElementBuilder. | 
Return Value
The builder instance, allowing for method chaining.
See Also
- enum ChannelSelector
 - class OneOf<T1,T2>
 - enum FilterInput
 - enum LengthType
 - class OneOf<T1,T2,T3>
 - enum Paint
 - class SVGFEDisplacementMapElementBuilder
 - interface ISVGElementBuilder
 - interface IFilterPrimitiveElementBuilder
 - class SVGBuilderExtensions
 - namespace Aspose.Svg.Builder
 - assembly Aspose.SVG
 
AddFeDisplacementMap(this TBuilder, Action<SVGFEDisplacementMapElementBuilder>) 
Adds an ‘feDisplacementMap’ element configuration to the builder. This element displaces an image by a specified vector map.
public static TBuilder AddFeDisplacementMap<TBuilder>(this TBuilder builder, 
    Action<SVGFEDisplacementMapElementBuilder> configure)
    where TBuilder : ISVGElementBuilder, IFilterPrimitiveElementBuilder
| Parameter | Description | 
|---|---|
| TBuilder | The type of the SVG element builder. | 
| builder | The builder instance. | 
| configure | The configuration action for the ‘feDisplacementMap’ element. | 
Return Value
The builder instance for chaining.
See Also
- class SVGFEDisplacementMapElementBuilder
 - interface ISVGElementBuilder
 - interface IFilterPrimitiveElementBuilder
 - class SVGBuilderExtensions
 - namespace Aspose.Svg.Builder
 - assembly Aspose.SVG