TBApiAutoSetSwapXY API Call

 

Description

Examines the recorded calibration points for a device to see if "SwapXY" is incorrectly set - if so set SwapXY correctly and reverse/correct the recorded co-ordinates. This call can only function if at least 2 calibration points share the same Y axis.

Parameters

Device handle.

Returns

TRUE (1) if successful. FALSE (0) if at least 2 calibration points do not share the same Y axis.

Notes

A calibration routine should call this after the raw co-ordinates have been stored to ensure this property is correctly set.

See also

Other calibration related API calls.

 

Visual C++ Declaration/example

 

BOOL  TBAPI TBApiAutoSetSwapXY(HTBDEVICE aDevice);

 

If (TBApiAutoSetSwapXY (0) )

            AfxMessageBox( “Auto set SwapXY Ok”);

 

Visual Basic Declaration/example

 

Public Declare Function TBApiAutoSetSwapXY Lib "TBapi" Alias “_DLL_TBApiAutoSetSwapXY@4" _

(ByVal aDevice As Byte) As Boolean

 

if TBApiAutoSetSwapXY = True then

            MsgBox “Auto set SwapXY Ok”

end if