コード例 #1
0
        public static void PrepareCalibrationPoints()
        {
            calibrationPoints = new CalibrationPoints();

            int pointCount = 0;
            Touch.ActiveTouchPanel.GetCalibrationPointCount(ref pointCount);

            calibrationPoints.ScreenX = new short[pointCount];
            calibrationPoints.ScreenY = new short[pointCount];
            calibrationPoints.TouchX = new short[pointCount];
            calibrationPoints.TouchY = new short[pointCount];

            // Get the points for calibration.
            for (int i = 0; i < pointCount; i++)
            {
                int x = 0;
                int y = 0;
                Touch.ActiveTouchPanel.GetCalibrationPoint(i, ref x, ref y);
                calibrationPoints.ScreenX[i] = (short)x;
                calibrationPoints.ScreenY[i] = (short)y;
            }
        }
コード例 #2
0
ファイル: CalibrationManager.cs プロジェクト: radtek/MFE
        public static void PrepareCalibrationPoints()
        {
            calibrationPoints = new CalibrationPoints();

            int pointCount = 0;

            Touch.ActiveTouchPanel.GetCalibrationPointCount(ref pointCount);

            calibrationPoints.ScreenX = new short[pointCount];
            calibrationPoints.ScreenY = new short[pointCount];
            calibrationPoints.TouchX  = new short[pointCount];
            calibrationPoints.TouchY  = new short[pointCount];

            // Get the points for calibration.
            for (int i = 0; i < pointCount; i++)
            {
                int x = 0;
                int y = 0;
                Touch.ActiveTouchPanel.GetCalibrationPoint(i, ref x, ref y);
                calibrationPoints.ScreenX[i] = (short)x;
                calibrationPoints.ScreenY[i] = (short)y;
            }
        }
コード例 #3
0
ファイル: CalibrationManager.cs プロジェクト: radtek/MFE
 private static void LoadCalibrationPoints()
 {
     ewrCalibrationPoints          = ExtendedWeakReference.RecoverOrCreate(typeof(CalibrationManager), 0, ExtendedWeakReference.c_SurvivePowerdown | ExtendedWeakReference.c_SurviveBoot);
     ewrCalibrationPoints.Priority = (int)ExtendedWeakReference.PriorityLevel.System;
     calibrationPoints             = (CalibrationPoints)ewrCalibrationPoints.Target;
 }
コード例 #4
0
 private static void LoadCalibrationPoints()
 {
     ewrCalibrationPoints = ExtendedWeakReference.RecoverOrCreate(typeof(CalibrationManager), 0, ExtendedWeakReference.c_SurvivePowerdown | ExtendedWeakReference.c_SurviveBoot);
     ewrCalibrationPoints.Priority = (int)ExtendedWeakReference.PriorityLevel.System;
     calibrationPoints = (CalibrationPoints)ewrCalibrationPoints.Target;
 }