SVG

svgClose()

Finish an SVG drawing and close its file

Syntax

Signature
svgClose( nSvg ) --> NIL

Arguments

nSvg

Drawing handle returned by svgInit().

Return value

NIL.

Description

Writes the closing SVG tag and closes the file. Call it once after the last drawing operation.

Example

svgClose.prg
PROCEDURE Main()

   LOCAL nSvg := svgInit( "drawing.svg", 200, 120 )

   IF nSvg == 0
      RETURN
   ENDIF

   svgFilledRect( nSvg, 20, 20, 160, 80, "#DCEAF7", 12 )
   svgClose( nSvg )

RETURN

Output

See also