Creates a new SVG document with the specified version.
#include "l_bitmap.h"
L_LTSVG_API L_INT L_SvgCreateDocument(docHandle, version)
Address of a pointer to the L_SvgNodeHandle referencing the new SVG document.
The SVG version for the new SVG document.
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.
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;
}