예제 #1
0
        private void ShowSnapshot(Bitmap snapshot)
        {
            SnapshotForm snapshotForm = new SnapshotForm();

            snapshotForm.SetImage(snapshot, this._lastPath);
            snapshotForm.Show();
        }
예제 #2
0
        private void btnSnapshot_Click(object sender, EventArgs e)
        {
            SnapshotForm snapshotForm = new SnapshotForm();

            snapshotForm.ShowDialog();

            if (snapshotForm.DialogResult == DialogResult.OK)
            {
                int maxPictureKey = Dao.Picture.GetMaxKey();

                byte[] userByteImage = Dao.Picture.GetByPK(maxPictureKey).value;
                Image  userImage     = ByteArrayToImage(userByteImage);

                pbUserImage.Image = userImage;

                btnSnapshot.Enabled = false;
            }
        }
예제 #3
0
 public void UpdateCalibrationSnapshot(SceneCalibrationSnapshot snapshot)
 {
     this.Snapshot = snapshot;
     SnapshotForm?.Update(snapshot);
 }