L_VecDeleteLayer

#include "ltvkrn.h"

L_LVKRN_API L_INT L_VecDeleteLayer(pVector, pLayer)

Deletes the specified layer from the vector handle. This function is available in the LEADTOOLS Vector Imaging Pro Toolkit.

Parameters

pVECTORHANDLE pVector

Pointer to the vector handle.

const pVECTORLAYER pLayer

Pointer to a VECTORLAYER structure that references the layer to be deleted.

Returns

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

Comments

Deleting a layer also deletes all objects within the layer.

Required DLLs and Libraries

See Also

Functions

Topics

Example

This example will delete the layer with the given name from the vector handle.

L_LTVKRNTEX_API L_INT VecDeleteLayerExample( 
   pVECTORHANDLE pVector, 
   L_TCHAR* pszName) 
{ 
   VECTORLAYER Layer; 
   L_INT       nRet; 
 
   /* Get the layer with the given name */ 
   nRet = L_VecGetLayerByName( pVector, pszName, &Layer ); 
   if( SUCCESS == nRet ) 
      nRet = L_VecDeleteLayer ( pVector, &Layer );  /* Delete it */ 
 
   return nRet; 
} 

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

LEADTOOLS Vector C API Help

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.