L_LTVKRN_API L_INT L_VecDeleteGroup(pVector, pGroup)
Deletes the specified group from the vector handle. This function is available in the LEADTOOLS Vector Imaging Pro Toolkit.
Pointer to the vector handle.
Pointer to a VECTORGROUP structure that references the group to be deleted.
|SUCCESS||The function was successful.|
|< 1||An error occurred. Refer to Return Codes.|
Deleting a group also deletes all objects within the group.
Required DLLs and Libraries
This example will delete the group with the given name from the vector handle.
L_LTVKRNTEX_API L_INT VecDeleteGroupExample(
/* Get the group with the given name */
nRet = L_VecGetGroupByName( pVector, pszName, &Group );
if( SUCCESS == nRet )
nRet = L_VecDeleteGroup ( pVector, &Group ); /* Delete it */