L_ExtractObjects_AddObject

Summary

Adds an object to the list.

Syntax

#include "l_bitmap.h"

L_LTIMGCOR_API L_INT L_ExtractObjects_AddObject(pData, pTargetList, pObject, pObjectNeighbor, uLocation, pReallocated)

Parameters

pEXOBJ_DATA pData

The extracted object's information.

pEXOBJ_OBJECTLIST pTargetList

The target list to be modified.

pEXOBJ_OBJECT pObject

The object to add. This value cannot be null.

pEXOBJ_OBJECT pObjectNeighbor

Optional object for relative positioning.

L_UINT8 uLocation

The target location for adding. Possible values are:

Value Meaning
EXOBJ_LOCATION_AFTER [0] Add pObject to pTargetList after pObjectNeighbor.
EXOBJ_LOCATION_BEFORE [1] Add pObject to pTargetList before pObjectNeighbor.
EXOBJ_LOCATION_CHILD [2] Add pObject to the end of pObjectNeighbor->pChildren.
EXOBJ_LOCATION_SIBLING [3] Add pObject to the end of pObjectNeighbor->pSiblings.

pEXOBJ_OBJECT * pReallocated

Pointer to be updated with the new EXOBJ-OBJECT structure managed by pData.

Returns

Value Meaning
SUCCESS The function was successful.
< 1 An error occurred. Refer to Return Codes.

Comments

The behavior depends on the provided value of uLocation:

Required DLLs and Libraries

Platforms

Win32, x64, Linux.

See Also

Functions

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

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