L_SvgCreateDocument

#include "l_bitmap.h"

L_LTSVG_API L_INT L_SvgCreateDocument(docHandle, version)

Creates a new SVG document with the specified version.

Parameters

L_SvgNodeHandle* docHandle

Address of a pointer to the L_SvgNodeHandle referencing the new SVG document.

L_SvgVersion version

The SVG version for the new SVG document.

Returns

Value Description
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

Platforms

Win32, x64, Linux.

See Also

Functions

Topics

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 21.0.2021.7.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS SVG C API Help

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.