次の方法で共有


TouchPanelSetCalibration (Compact 2013)

3/26/2014

This function sets the calibration information that the TouchPanelCalibrateAPoint function uses to calibrate a touch point.

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 touch driver model device driver (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

tchproxy.dll

See Also

Reference

Touch Proxy Driver Functions
TouchPanelCalibrateAPoint