File: image.rst

package info (click to toggle)
svgwrite 1.4.3-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 2,304 kB
  • sloc: python: 12,524; makefile: 116; sh: 5
file content (79 lines) | stat: -rw-r--r-- 2,177 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
Image
=====

.. autoclass:: svgwrite.image.Image

Methods
-------

.. automethod:: svgwrite.image.Image.__init__

.. automethod:: svgwrite.image.Image.stretch

.. automethod:: svgwrite.image.Image.fit

Parent Classes
--------------

* :class:`svgwrite.base.BaseElement`
* :class:`svgwrite.mixins.Transform`
* :class:`svgwrite.mixins.Clipping`

SVG Attributes
--------------
* **class** -- `string`

  assigns one or more css-class-names to an element

* **style** -- `string`

  allows per-element css-style rules to be specified directly on a given
  element

* **externalResourcesRequired** -- `bool`

  *False*: if document rendering can proceed even if external resources are
  unavailable else: *True*

* **transform** -- use :class:`svgwrite.mixins.Transform` interface

* **x** -- `<coordinate>` -- **insert** parameter

  The x-axis coordinate of one corner of the rectangular region into which
  the referenced document is placed.

  Default is ``'0'``.

* **y** -- `<coordinate>` -- **insert** parameter

  The y-axis coordinate of one corner of the rectangular region into which
  the referenced document is placed.

  Default is ``'0'``.

* **width** -- `<length>` -- **size** parameter

  The width of the rectangular region into which the referenced document is
  placed. A negative value is an error. A value of zero disables rendering
  of the element.

* **height** -- `<length>` -- **size** parameter

  The height of the rectangular region into which the referenced document is
  placed. A negative value is an error. A value of zero disables rendering of
  the element.

* **xlink:href** -- `string` -- **href** parameter

  A IRI reference to the image resource.

* **preserveAspectRatio** -- ``'[defer] <align> [<meetOrSlice>]'``

Standard SVG Attributes
-----------------------

* :doc:`Core Attributes </attributes/core>`
* :doc:`Conditional Processing Attributes </attributes/conditional_processing>`
* :doc:`Graphical Event Attributes </attributes/graphical_event>`
* :doc:`Presentation Attributes </attributes/presentation>`
* :doc:`XLink Attributes </attributes/xlink>`