SvgGetSize: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 11: Line 11:


==Example==
==Example==
See the example for [[svgCreate]].
See the example for [[svgSetSize]].


==Requirements==
==Requirements==

Revision as of 18:05, 26 September 2021

Gets the underlying XML document from an SVG element.

Syntax

int, int svgGetSize( svg svgElement )

Required Arguments

  • svgElement: The svg you want to get the size of.

Returns

  • Returns two ints, representing width and height

Example

See the example for svgSetSize.

Requirements

Minimum server version n/a
Minimum client version 1.5.8-9.20979

Note: Using this feature requires the resource to have the above minimum version declared in the meta.xml <min_mta_version> section. e.g. <min_mta_version client="1.5.8-9.20979" />

See Also