set_translate method
set_translate
Sets the transform type to SVG_TRANSFORM_TRANSLATE, with parameters tx and ty defining the translation amounts.
def set_translate(self, tx, ty):
...
| Parameter | Type | Description |
|---|---|---|
| tx | float | The translation amount in X. |
| ty | float | The translation amount in Y. |
Exceptions
| Exception | Description |
|---|---|
DOMException | Code DOMException.NO_MODIFICATION_ALLOWED_ERR.Raised on an attempt to change the value of a read only attribute. |
See Also
- module
aspose.svg.datatypes - class
DOMException - class
SVGTransform