private void cvsInSightDisplay1_InSightChanged(object sender, EventArgs e) { InSight = cvsInSightDisplay1.InSight; PropertyChanged.BeginInvoke(this, new PropertyChangedEventArgs("IsConnected"), null, null); mImageOrientation = cvsInSightDisplay1.ImageOrientation; }
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; }