예제 #1
0
 void frmFullSizePreview_OnPreviewKeyDowned(KeyEventArgs e)
 {
     if (cbxMaskContamination.Checked && m_ExpectMaskAreaDefinition && frmFullSizePreview.CurrFrame != null)
     {
         MaskAreaSelector.OnPreviewKeyDown(e);
         FrameAdjustmentsPreview.Instance.Update();
     }
 }
예제 #2
0
        void frmFullSizePreview_OnDrawOverlays(Graphics g)
        {
            if (cbxUseHotPixelsCorrection.Checked)
            {
                HotPixelCorrector.DrawOverlay(g, Math.Max(1, tbDepth.Value), cbxPlotPeakPixels.Checked);
            }

            if (cbxMaskContamination.Checked)
            {
                MaskAreaSelector.DrawOverlay(g);
            }
        }
예제 #3
0
        private void cbxMaskContamination_CheckedChanged(object sender, EventArgs e)
        {
            if (cbxMaskContamination.Checked)
            {
                FrameAdjustmentsPreview.Instance.ExpectHotPixelClick(false, false);
                FrameAdjustmentsPreview.Instance.ExpectMaskAreaClick(true, true);

                MessageBox.Show(ParentForm,
                                "Please define the polygon area to mask out by selecting 4 or more corners finishing at the first corner.\r\n\r\n" +
                                "Once the polygon is defined the corners can be dragged around to refine the area and new corners can be added while holding Shift.\r\n\r\n" +
                                "Right-click to reset.",
                                "Tangra",
                                MessageBoxButtons.OK, MessageBoxIcon.Information);

                m_ExpectMaskAreaDefinition = true;

                MaskAreaSelector.Initialize();
            }
            else
            {
                m_ExpectMaskAreaDefinition = false;
                FrameAdjustmentsPreview.Instance.ExpectMaskAreaClick(false, false);
            }
        }