L_SvgLoadOptions

Summary

The L_SvgLoadOptions structure represents the options of the loaded SVG document.

Syntax

struct L_SvgLoadOptions 
{ 
   L_UINT StructSize; 
   L_SvgLoadFlags LoadFlags; 
   L_UINT MaximumElements; 
}; 
typedef struct L_SvgLoadOptions L_SvgLoadOptions; 

Members

L_UINT StructSize

Size of this structure. Use sizeof (L_SvgLoadOptions).

L_SvgLoadFlags LoadFlags

The options to use when loading SVG documents.
This member allows you to drop certain elements when loading SVG documents. For example, if you are only interested in the text elements of the SVG, then set LoadFlags to L_SvgLoadFlags_DropShapes | L_SvgLoadFlags_DropImages, and the engine will not load these types of elements to reserve memory and system resources.

L_UINT MaximumElements

The maximum number of elements.

Comments

Creating an SVG document with text only is desired in certain scenarios. For example, if the application loads SVG document to parse the text values and store them in an external database for text search purposes, then setting the value of LoadFlags to L_SvgLoadFlags_DropShapes | L_SvgLoadFlags_DropImages will speed up the loading operation and elements not required will be discarded. This is especially useful if the original SVG document contains image elements which may use a lot of memory and disk space.

L_SvgLoadDocument and L_SvgLoadDocumentMemory use L_SvgLoadOptions to set the load options when loading an SVG document.

Usage

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS SVG C API Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.