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.
1/6/2010
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.
Syntax
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 Value
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
| Header | tchddi.h |
| Library | Tchmain.lib |
| Windows Embedded CE | Windows CE 1.0 and later |