Beispiel #1
0
        private void buttonProcessImage_Click(object sender, EventArgs e)
        {
            Form  FormTmpform = Form.ActiveForm;
            //IntPtr handle = GetActiveWindow();

            //Sequence SeqToAnalyse = IMGlobal.CurrentSequence;

            FormForInfoBeforeStarting WindowForInfo = new FormForInfoBeforeStarting();
            WindowForInfo.numericUpDownResolutionX.Value = (decimal)this.AssociatedImage.Resolution.X;
            WindowForInfo.numericUpDownResolutionY.Value = (decimal)this.AssociatedImage.Resolution.Y;
            WindowForInfo.numericUpDownResolutionZ.Value = (decimal)this.AssociatedImage.Resolution.Z;

            if (WindowForInfo.ShowDialog() != System.Windows.Forms.DialogResult.OK) return;
            this.AssociatedImage.Resolution.X = (double)WindowForInfo.numericUpDownResolutionX.Value;
            this.AssociatedImage.Resolution.Y = (double)WindowForInfo.numericUpDownResolutionY.Value;
            this.AssociatedImage.Resolution.Z = (double)WindowForInfo.numericUpDownResolutionZ.Value;

            AnalyseSequence(this.AssociatedImage);
        }
Beispiel #2
0
        private void buttonProcessImage_Click(object sender, EventArgs e)
        {
            Sequence SeqToAnalyse = IMGlobal.CurrentSequence;

            FormForInfoBeforeStarting WindowForInfo = new FormForInfoBeforeStarting();
            WindowForInfo.numericUpDownResolutionX.Value = (decimal)SeqToAnalyse.XResolution;
            WindowForInfo.numericUpDownResolutionY.Value = (decimal)SeqToAnalyse.YResolution;
            WindowForInfo.numericUpDownResolutionZ.Value = (decimal)SeqToAnalyse.ZResolution;

            if (WindowForInfo.ShowDialog() != System.Windows.Forms.DialogResult.OK) return;
            SeqToAnalyse.XResolution = (double)WindowForInfo.numericUpDownResolutionX.Value;
            SeqToAnalyse.YResolution = (double)WindowForInfo.numericUpDownResolutionY.Value;
            SeqToAnalyse.ZResolution = (double)WindowForInfo.numericUpDownResolutionZ.Value;

               // Current3DWorld.ListObjControl.get
            AnalyseSequence(null, SeqToAnalyse);
        }