Donner SVG Editor & Engine
SVG-native editor and embeddable SVG2 + CSS3 engine in C++20, with GPU (WebGPU) and compact CPU renderers, built for correctness, security, and performance.
Loading...
Searching...
No Matches
<feMorphology>

Defines a filter primitive that erodes or dilates the input image.

This element is defined within a <filter> element, and is combined with other filter primitives to define a filter applied on the input image.

Example usage:

<filter id="MyFilter">
<feMorphology in="SourceGraphic" operator="dilate" radius="5" />
</filter>

Source dilate r=3 erode r=2

Attribute Default Description
operator erode erode (minimum) or dilate (maximum).
radius 0 Kernel radius; may be one or two numbers (x, y).

Inherits standard filter primitive attributes (in, result, x, y, width, height) from donner::svg::SVGFilterPrimitiveStandardAttributes.