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
indexintThe index of the calibration point.
xintThe X coordinate of the calibration point.
yintThe 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
countintThe 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
cCalibrationPointsintThe number of calibration points.
screenXBuffershort[]The X coordinates of the points on the screen.
screenYBuffershort[]The Y coordinates of the points on the screen.
uncalXBuffershort[]The uncalibrated X coordinates of the points.
uncalYBuffershort[]The uncalibrated Y coordinates of the points.
StartCalibration()
Starts the calibration process for the touch panel.
public void StartCalibration()