Share via


SetCalibration Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Calibrates the touch panel based on a series of pairs of calibration points.

Namespace:  Microsoft.SPOT.Touch
Assembly:  Microsoft.SPOT.Touch (in Microsoft.SPOT.Touch.dll)

Syntax

'Declaration
Public Sub SetCalibration ( _
    cCalibrationPoints As Integer, _
    screenXBuffer As Short(), _
    screenYBuffer As Short(), _
    uncalXBuffer As Short(), _
    uncalYBuffer As Short() _
)
public void SetCalibration(
    int cCalibrationPoints,
    short[] screenXBuffer,
    short[] screenYBuffer,
    short[] uncalXBuffer,
    short[] uncalYBuffer
)
public:
void SetCalibration(
    int cCalibrationPoints, 
    array<short>^ screenXBuffer, 
    array<short>^ screenYBuffer, 
    array<short>^ uncalXBuffer, 
    array<short>^ uncalYBuffer
)
member SetCalibration : 
        cCalibrationPoints:int * 
        screenXBuffer:int16[] * 
        screenYBuffer:int16[] * 
        uncalXBuffer:int16[] * 
        uncalYBuffer:int16[] -> unit 
public function SetCalibration(
    cCalibrationPoints : int, 
    screenXBuffer : short[], 
    screenYBuffer : short[], 
    uncalXBuffer : short[], 
    uncalYBuffer : short[]
)

Parameters

  • screenXBuffer
    Type: array<System. . :: . .Int16> [] () [] []
    An array of X coordinates of the screen calibration points.
  • screenYBuffer
    Type: array<System. . :: . .Int16> [] () [] []
    An array of Y coordinates of the screen calibration points.
  • uncalXBuffer
    Type: array<System. . :: . .Int16> [] () [] []
    An array of raw (uncalibrated) X coordinates of the touch-panel calibration points.
  • uncalYBuffer
    Type: array<System. . :: . .Int16> [] () [] []
    An array of raw (uncalibrated) Y coordinates of the touch-panel calibration points.

Remarks

Each pair of calibration points consists of a screen point, defined by an X and Y coordinate, and a touch-panel point, defined by an uncalibrated X and Y coordinate.

.NET Framework Security

See Also

Reference

TouchPanel Class

Microsoft.SPOT.Touch Namespace