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.
VOID TouchPanelSetCalibration( INT32 cCalibrationPoints,
INT32 *pScreenXBuffer, INT32 *pScreenYBuffer, INT32 *pUncalXBuffer, INT32 *pUncalYBuffer );
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.