コード例 #1
0
        private void NewImage(object sender, NewImageEventArgs e)
        {
            //if (PenPositionChanged != null) PenPositionChanged(this, PenTracker.GetPenPosition(e.NewImage));
            _gridcheck--;
            if (_gridcheck == 0) // calibration check needed
            {
                _gridcheck = 1000;
                switch (_calibrator.CheckCalibration())
                {
                case 1: Calibrator.Calibrate();
                    break;

                case 2: Calibrator.CalibrateColors();
                    break;
                }
            }
        }