Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This function initializes calibration information in a global parameter vCalcParam, which you can use to convert noncalibrated points to calibrated points by the TouchPanelCalibrateAPoint function.
VOID TouchPanelSetCalibration(INT32 cCalibrationPoints,INT32* pScreenXBuffer,INT32* pScreenYBuffer,INT32* pUncalXBuffer,INT32* pUncalYBuffer);
Parameters
- cCalibrationPoints
[in] Integer indicating the number of calibration points. - pScreenXBuffer
[out] Array of screen x-coordinates displayed. - pScreenYBuffer
[out] Array of screen y-coordinates displayed. - pUncalXBuffer
[out] Array of x-coordinates collected. - pUncalYBuffer
[out] Array of y-coordinates collected.
Return Values
None.
Remarks
This is the two-dimensional version of the transform. A simpler one-dimensional transform is in the MDD code. Use the preprocessor variable TWO_DIMENSIONAL_CALIBRATION to select which transform to use.
The two-dimensional version is more complicated but more accurate because it does not assume independent x and y values.
Requirements
OS Versions: Windows CE 1.0 and later.
Header: Tchddi.h.
Link Library: Tchmain.lib.
See Also
Send Feedback on this topic to the authors