L_SvgEnumerateCallback Function

#include "l_bitmap.h"

L_INT pEXT_CALLBACK YourFunction(node, userData)

Callback to receive the SVG elements (nodes) from the L_SvgEnumerateElements function.

Parameters

L_SvgNodeHandle node

Handle for the SVG element being enumerated.

L_VOID* userData

Void pointer that you can use to access a variable or structure containing data that your callback function needs. This gives you a way to receive data indirectly from the function that uses this callback function. (This is the same pointer that you pass in the pUserData parameter of the L_SvgEnumerateElements function.)

Keep in mind that this is a void pointer, which must be cast to the appropriate data type within your callback function.

Returns

Value Meaning
SUCCESS Continue enumerating SVG nodes.
< 1 Stop enumerating SVG nodes.

Comments

The L_SvgEnumerateElements function calls your callback function for each SVG node in the specified SVG document.

To continue to the next element (node) if any, return SUCCESS. To stop enumerating, return 0.

Required DLLs and Libraries

Example

For an example, refer to L_SvgEnumerateElements.

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

LEADTOOLS SVG C API Help