Skip to content

Commit

Permalink
[filter-effects] Add mirror edgeMode filter - fixes w3c#527
Browse files Browse the repository at this point in the history
  • Loading branch information
flackr committed Mar 5, 2024
1 parent 8db2fc6 commit 2e8fb73
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions filter-effects/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1674,7 +1674,7 @@ When the image must be resampled to match the coordinate system defined by <a el
Determines the positioning in Y of the convolution matrix relative to a given target pixel in the input image. The topmost row of the matrix is row number zero. The value must be such that: 0 &lt;= targetY &lt; orderY. By default, the convolution matrix is centered in Y over each pixel of the input image (i.e., targetY = floor ( orderY / 2 )).</p>

Animatable: yes.
: <dfn>edgeMode</dfn> = "<a attr-value>duplicate</a> | <a attr-value>wrap</a> | none</span>"
: <dfn>edgeMode</dfn> = "<a attr-value>duplicate</a> | <a attr-value>wrap</a> | <a attr-value>mirror</a> | none</span>"
::
Determines how to extend the input image as necessary with color values so that the matrix operations can be applied when the kernel is positioned at or near the edge of the input image.

Expand All @@ -1694,6 +1694,12 @@ When the image must be resampled to match the coordinate system defined by <a el

<pre class=include>path: mathml/feConvolveMatrix06.mml</pre>

<a attr-value>mirror</a> indicates that the input image is extended by taking color values mirrored across the edge being sampled beyond.

Extended by two pixels using <a attr-value>mirror</a>:

<pre class=include>path: mathml/feConvolveMatrix07.mml</pre>

The value ''feConvolveMatrix/none'' indicates that the input image is extended with pixel values of zero for R, G, B and A.

The <a for=svg>initial value</a> for <a element-attr for=feConvolveMatrix>edgeMode</a> is ''duplicate''.
Expand Down Expand Up @@ -2331,7 +2337,7 @@ Frequently this operation will take place on alpha-only images, such as that pro
The <a for=svg>initial value</a> for <a element-attr for=feGaussianBlur>stdDeviation</a> is ''0''.

Animatable: yes.
: <dfn>edgeMode</dfn> = "<a attr-value>duplicate</a> | <a attr-value>wrap</a> | none"
: <dfn>edgeMode</dfn> = "<a attr-value>duplicate</a> | <a attr-value>wrap</a> | <a attr-value>mirror</a> | none"
::
Determines how to extend the input image as necessary with color values so that the matrix operations can be applied when the kernel is positioned at or near the edge of the input image.

Expand All @@ -2341,6 +2347,8 @@ Frequently this operation will take place on alpha-only images, such as that pro

<dfn dfn-type=attr-value dfn-for=feGaussianBlur/edgeMode>wrap</dfn> indicates that the input image is extended by taking the color values from the opposite edge of the image.

<dfn dfn-type=attr-value dfn-for=feGuassianBlur/edgeMode>mirror</dfn> indicates that the input image is extended by taking color values mirrored across the edge being sampled beyond.

The value ''feGaussianBlur/none'' indicates that the input image is extended with pixel values of zero for R, G, B and A.

The <a for=svg>initial value</a> for <a element-attr for=feGaussianBlur>edgeMode</a> is ''feGaussianBlur/none''.
Expand Down

0 comments on commit 2e8fb73

Please sign in to comment.