L_VecSetLocked

#include "ltvkrn.h"

L_LVKRN_APIL_INTL_VecSetLocked(pVector, bLock)

Locks or unlocks the specified vector handle. This function is available in the LEADTOOLS Vector Imaging Pro Toolkit.

Parameters

pVECTORHANDLEpVector

Pointer to a vector handle.

L_BOOLbLock

Flag that indicates whether to lock or unlock the specified vector handle. Possible values are:

Value Meaning
TRUE Lock the specified vector handle.
FALSE Unlock the specified vector handle.

Returns

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

评论

Locking a vector handle has precedence over locking layers within the vector handle. Therefore, if a vector handle is locked, the layers within that vector handle cannot be edited, even if the layers are not locked.

To lock a layer, set the bLocked member of aVECTORLAYERDESCstructure to TRUE and update the layer information using theL_VecSetLayerfunction.

Required DLLs and Libraries

See Also

Functions

Topics

Example

This example will toggle the lock property of a vector handle.

L_LTVKRNTEX_API L_INT VecSetLockedExample(pVECTORHANDLE pVector){if( L_VecIsLocked( pVector ) )L_VecSetLocked( pVector, FALSE );elseL_VecSetLocked( pVector, TRUE );returnSUCCESS;}

LEADTOOLS Vector C API Help
188金宝搏的网址客服|Support|Contact Us|Intellectual Property Notices
© 1991-2021LEAD Technologies, Inc.All Rights Reserved.