L_LVKRN_API L_INT L_VecEmpty(pVector)
Deletes all layers and objects from the specified vector handle. This function is available in the LEADTOOLS Vector Imaging Pro Toolkit.
Pointer to a vector handle that references the vector image to be emptied.
Value | Meaning |
---|---|
SUCCESS | The function was successful. |
< 1 | An error occurred. Refer to Return Codes. |
Calling this function will not affect other settings such as camera, transformation, etc.
Required DLLs and Libraries
This example empties a vector handle.
L_LTVKRNTEX_API L_INT VecEmptyExample(pVECTORHANDLE pVector)
{
L_INT nRet; /* return value */
nRet = L_VecEmpty ( pVector );
if( nRet != SUCCESS )
MessageBox( NULL, TEXT("Error while emptying the vector!"), NULL, MB_OK );
return nRet;
}