예제 #1
0
        private void cvsInSightDisplay1_InSightChanged(object sender, EventArgs e)
        {
            InSight = cvsInSightDisplay1.InSight;
            PropertyChanged.BeginInvoke(this, new PropertyChangedEventArgs("IsConnected"), null, null);

            mImageOrientation = cvsInSightDisplay1.ImageOrientation;
        }
예제 #2
0
        public void SetImgOrientation(int angle)
        {
            int orientation = angle + (int)mImageOrientation;

            if (orientation >= 360)
            {
                orientation = 0;
            }
            else if (orientation < 0)
            {
                orientation = orientation + 360;
            }
            mImageOrientation = (CvsImageOrientation)orientation;
            cvsInSightDisplay1.ImageOrientation = mImageOrientation;
        }