L_LTVKRN_API L_INT L_VecEmptyLayer(pVector, pLayer)
Empties the specified layer. This function is available in the LEADTOOLS Vector Imaging Pro Toolkit.
Pointer to the vector handle.
Pointer to a VECTORLAYER structure that references the layer to be emptied.
|SUCCESS||The function was successful.|
|< 1||An error occurred. Refer to Return Codes.|
The specified layer is emptied by deleting all objects within that layer.
To delete a layer, call L_VecDeleteLayer.
Required DLLs and Libraries
This example will delete all objects inside the layer with the given name.
L_LTVKRNTEX_API L_INT VecEmptyLayerExample(
/* Get the layer with the given name */
nRet = L_VecGetLayerByName( pVector, pszName, &Layer );
if( SUCCESS == nRet )
nRet = L_VecEmptyLayer( pVector, &Layer ); /* empty out */