SVGBuilderExtensions.AddFeMorphology
Contents
[
Hide
]AddFeMorphology<TBuilder>(this TBuilder, MorphologyOperator?, OneOf<double, (double, 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<SVGFEMorphologyElementBuilder>)
Adds an ‘feMorphology’ element to the SVG builder, applying a morphological operation to the input image.
public static TBuilder AddFeMorphology<TBuilder>(this TBuilder builder,
MorphologyOperator? @operator = default, OneOf<double, (double, double)> radius = 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<SVGFEMorphologyElementBuilder> 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 ‘feMorphology’ element will be added. |
operator | The morphological operator to be applied. Optional parameter. |
radius | The radius for the morphology operation. Can be a double or a ValueTuple of two doubles. Optional parameter. |
in | The input image to which the morphological operation will be applied. 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 SVGFEMorphologyElementBuilder. |
Return Value
The builder instance, allowing for method chaining.
See Also
- enum MorphologyOperator
- class OneOf<T1,T2>
- enum FilterInput
- enum LengthType
- class OneOf<T1,T2,T3>
- enum Paint
- class SVGFEMorphologyElementBuilder
- interface ISVGElementBuilder
- interface IFilterPrimitiveElementBuilder
- class SVGBuilderExtensions
- namespace Aspose.Svg.Builder
- assembly Aspose.SVG
AddFeMorphology<TBuilder>(this TBuilder, Action<SVGFEMorphologyElementBuilder>)
Adds an ‘feMorphology’ element configuration to the builder. This element is used to apply morphological operations like dilation or erosion on the input image.
public static TBuilder AddFeMorphology<TBuilder>(this TBuilder builder,
Action<SVGFEMorphologyElementBuilder> 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 ‘feMorphology’ element. |
Return Value
The builder instance for chaining.
See Also
- class SVGFEMorphologyElementBuilder
- interface ISVGElementBuilder
- interface IFilterPrimitiveElementBuilder
- class SVGBuilderExtensions
- namespace Aspose.Svg.Builder
- assembly Aspose.SVG