Table of Contents

Class TouchPanel

Namespace
nanoFramework.UI
Assembly
nanoFramework.Graphics.dll

Class that represents a touch panel and provides calibration-related functions.

public class TouchPanel
Inheritance
TouchPanel
Inherited Members
Extension Methods

Constructors

TouchPanel()

public TouchPanel()

Methods

GetCalibrationPoint(int, ref int, ref int)

Gets the coordinates of a calibration point.

public void GetCalibrationPoint(int index, ref int x, ref int y)

Parameters

index int

The index of the calibration point.

x int

The X coordinate of the calibration point.

y int

The Y coordinate of the calibration point.

GetCalibrationPointCount(ref int)

Gets the number of calibration points currently set for the touch panel.

public void GetCalibrationPointCount(ref int count)

Parameters

count int

The number of calibration points.

SetCalibration(int, short[], short[], short[], short[])

Sets the calibration parameters for the touch panel.

public void SetCalibration(int cCalibrationPoints, short[] screenXBuffer, short[] screenYBuffer, short[] uncalXBuffer, short[] uncalYBuffer)

Parameters

cCalibrationPoints int

The number of calibration points.

screenXBuffer short[]

The X coordinates of the points on the screen.

screenYBuffer short[]

The Y coordinates of the points on the screen.

uncalXBuffer short[]

The uncalibrated X coordinates of the points.

uncalYBuffer short[]

The uncalibrated Y coordinates of the points.

StartCalibration()

Starts the calibration process for the touch panel.

public void StartCalibration()