TouchPanelSetCalibration (Windows CE 5.0)

Send Feedback

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

TouchPanelCalibrateAPoint

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.