TouchPanelSetCalibration

This function initializes calibration information in a global parameter vCalcParam, which is used to convert non-calibrated points to calibrated points by the TouchPanelCalibrateAPoint function.

Syntax

VOID TouchPanelSetCalibration( INT32 cCalibrationPoints,
INT32 *
pScreenXBuffer, INT32 *pScreenYBuffer, INT32 *pUncalXBuffer, INT32 *pUncalYBuffer );

Parameters

cCalibrationPoints
Integer indicating the number of calibration points.
pScreenXBuffer
Specifies an array of screen x-coordinates displayed.
pScreenYBuffer
Specifies an array of screen y-coordinates displayed.
pUncalXBuffer
Specifies an array of x-coordinates collected.
pUncalYBuffer
Specifies an array of y-coordinates collected.

Remarks

This is the 2-D version of the transform. A simpler 1-D transform is in the MDD code. The preprocessor variable TWO_DIMENSIONAL_CALIBRATION can be used to select which transform to use.

The 2-D version is more complicated but more accurate because it does not assume independent x and y values.

This function is defined in the header file Tchddi.h file and is available in Windows CE version 1.0 and later.