L_SvgCreateDocument

#include "l_bitmap.h"

L_LTSVG_API L_INT L_SvgCreateDocument(docHandle, version)

L_SvgNodeHandle* docHandle;

address of an SVG document handle

L_SvgVersion version;

SVG version

Creates a new SVG document with the specified version.

Parameter

Description

docHandle Address of a pointer to the L_SvgNodeHandle referencing the new SVG document.
version The SVG version for the new SVG document.

Returns

SUCCESS The function was successful.
< 1 An error occurred. Refer to Return Codes.

Comments

Support for SVG is available in Document and Medical Imaging toolkits.

To get and set information on the document bounds and resolution refer to SVG Size, Bounds and Flat.

When the SVG document data is no longer needed, you must call L_SvgFreeNode to free storage allocated for the SVG document.

Required DLLs and Libraries

LTSVG
For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.

Platforms

Win32, x64, Linux.

See Also
Functions: L_SvgGetDocumentVersion, L_SvgSetDocumentVersion, L_SvgLoadDocument, L_LoadSvg, L_SvgFreeNode
Topics: Working with SVG

Example

This example creates a new SVG document with 1.0 version.

L_INT SvgCreateDocumentExample(L_VOID) 
{ 
   L_INT nRet = -1; 
   L_SvgNodeHandle docHandle = NULL; 
   nRet = L_SvgCreateDocument(&docHandle, L_SvgVersion_1_0); 
   if (nRet != SUCCESS) 
      return nRet; 
   L_SvgFreeNode(docHandle); 
   return nRet; 
} 

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
LEADTOOLS SVG C API Help