Deletes the specified group from the vector handle. This function is available in the LEADTOOLS Vector Imaging Toolkit.
#include "ltvkrn.h"
L_LVKRN_API L_INT L_VecDeleteGroup(pVector, pGroup)
Pointer to the vector handle.
Pointer to a VECTORGROUP structure that references the group to be deleted.
Value | Meaning |
---|---|
SUCCESS | The function was successful. |
< 1 | An error occurred. Refer to Return Codes. |
Deleting a group also deletes all objects within the group.
This example will delete the group with the given name from the vector handle.
L_INT VecDeleteGroupExample(
pVECTORHANDLE pVector,
L_TCHAR* pszName)
{
VECTORGROUP Group;
L_INT nRet;
/* Get the group with the given name */
nRet = L_VecGetGroupByName( pVector, pszName, &Group );
if( SUCCESS == nRet )
nRet = L_VecDeleteGroup ( pVector, &Group ); /* Delete it */
return nRet;
}