File: fe_offset.rst

package info (click to toggle)
svgwrite 1.4.3-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, trixie
  • size: 2,304 kB
  • sloc: python: 12,524; makefile: 116; sh: 5
file content (44 lines) | stat: -rw-r--r-- 1,642 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
.. _feOffset:

feOffset Filter Element
=======================

.. seealso:: http://www.w3.org/TR/SVG11/filters.html#feOffsetElement

This filter primitive offsets the input image relative to its current position
in the image space by the specified vector.

This is important for effects like drop shadows.

When applying this filter, the destination location may be offset by a fraction
of a pixel in device space. In this case a high quality viewer should make use
of appropriate interpolation techniques, for example bilinear or bicubic. This
is especially recommended for dynamic viewers where this interpolation provides
visually smoother movement of images. For static viewers this is less of a concern.
Close attention should be made to the **image-rendering** property setting to
determine the authors intent.

For common properties see: :ref:`filter_primitive`

SVG Attributes
--------------

* **in** -- (see :ref:`in <in_attr>` attribute)

* **dx** -- `<number>`

    The amount to offset the input graphic along the x-axis. The offset amount
    is expressed in the coordinate system established by attribute **primitiveUnits**
    on the **filter** element.

    If the attribute is not specified, then the effect is as if a value of ``'0'``
    were specified.

* **dy** -- `<number>`

    The amount to offset the input graphic along the y-axis. The offset amount
    is expressed in the coordinate system established by attribute **primitiveUnits**
    on the **filter** element.

    If the attribute is not specified, then the effect is as if a value of ``'0'``
    were specified.