ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. svgSetSize

Function

svgSetSize

Changes the stored SVG document size in pixels.

Syntax

bool svgSetSize(element svgElement, int width, int height)

Arguments

svgElementelement
The SVG document.
widthint
Width.
heightint
Height.

Differences from MTA:SA

  • These MTA:SA arguments are not here: function svg

In MTA:SA

svgSetSize(svg svgElement, int width, int height, function svg)

Returns

true on success.

Example

local svg = svgCreate(128, 64, "<svg/>")
svgSetSize(svg, 256, 128)

See also