L_VecSetHitTest

#include "ltvkrn.h"

L_LVKRN_API L_INT L_VecSetHitTest(pVector, pHitTest)

Sets the new hit test settings.

Parameters

pVECTORHANDLE pVector

Pointer to a vector handle.

const pVECTORHITTEST pHitTest

Pointer to a VECTORHITTEST structure that contains the new hit test settings.

Returns

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

Comments

The hit test settings determine the behavior of the hit test. The hit test itself is performed by calling L_VecHitTest.

To get the current hit test settings, call L_VecGetHitTest.

For more information on possible hit test settings, refer to the VECTORHITTEST structure.

Required DLLs and Libraries

See Also

Functions

Topics

Example

This example will set the new hit test settings.

L_LTVKRNTEX_API L_INT VecSetHitTestExample(pVECTORHANDLE pVector) 
{ 
   VECTORHITTEST   HitTest;  /* Hittest settings */ 
 
   /* Allow for 4 pixels error calibration value */ 
   HitTest.nDistance = 4; 
 
   /* Allow hittest checking to be done inside closed figures as well */ 
   HitTest.dwFlags = VECTOR_HITTEST_CLOSEDFIGURES; 
 
   /* Set new hittest settings */ 
   return L_VecSetHitTest( pVector, &HitTest ); 
} 

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.