L_VecSetActiveLayer

#include "lvkrn.h"

L_LVKRN_API L_INT L_VecSetActiveLayer(pVector, pLayer)

Sets the active layer in the specified 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 the VECTORLAYER structure that references the layer to set as the active layer.

Returns

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

Comments

Some functions use the active layer when NULL is passed for a pVECTORLAYER parameter. This makes it easier to work with the toolkit when layers are not needed.

Required DLLs and Libraries

See Also

Functions

Topics

Example

This example will set the active layer to the one with the given name.

L_INT VecSetActiveLayerExample( 
   pVECTORHANDLE pVector, 
   const L_TCHAR* pszName) 
{ 
   VECTORLAYER Layer; 
   L_INT       nRet; 
 
   /* Get the requested layer */ 
   nRet = L_VecGetLayerByName( pVector, pszName, &Layer ); 
   if( nRet == SUCCESS ) 
      /* Set it as the active layer */ 
      nRet = L_VecSetActiveLayer( pVector, &Layer ); 
 
   return nRet; 
} 

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

LEADTOOLS Vector C API Help