#include "l_bitmap.h"
L_LTSVG_API L_INT L_SvgCreateDocument(docHandle, version)
Creates a new SVG document with the specified version.
Address of a pointer to the L_SvgNodeHandle referencing the new SVG document.
The SVG version for the new SVG document.
Returns
Value | Description |
---|---|
SUCCESS | The function was successful. |
< 1 | An error occurred. Refer to Return Codes. |
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
Win32, x64, Linux.
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;
}