Partager via


TchCal_SetCalibrationData (Compact 2013)

3/26/2014

This function sets the calibration data that TchCal_CalibrateSample uses to calibrate touch contact points.

Syntax

BOOL TchCal_SetCalibrationData(
  int cCalibrationPoints,
  int *pScreenXBuffer,
  int *pScreenYBuffer,
  int *pUncalXBuffer,
  int *pUncalBuffer
);

Parameters

  • cCalibrationPoints
    [in] The number of calibration points.
  • pScreenXBuffer
    [in] List of screen X coordinates displayed.
  • pScreenYBuffer
    [in] List of screen Y coordinates displayed.
  • pUncalXBuffer
    [in] List of X coordinates collected.
  • pUncalBuffer
    [in] List of Y coordinates collected.

Return Value

If calibration information is acceptable based on error analysis then this function returns TRUE, otherwise it returns FALSE.

Remarks

The touch proxy driver calls this function to implement TouchPanelSetCalibration.

Requirements

Header

tchstream.h

Library

tchcaldll.dll

See Also

Reference

Touch Calibration Functions