private void Button1_Click(object sender, EventArgs e)
 {
     using (FormImage form = new FormImage(HslCommunication.Algorithms.Fourier.FFTHelper.GetFFTImage(values.Select(m => (double)m).ToArray( ), 1000, 600, Color.Blue)))
     {
         form.ShowDialog( );
     }
 }
Exemplo n.º 2
0
 private void simpleButton1_Click(object sender, EventArgs e)
 {
     ISM.Template.FormImage img = new FormImage();
     img.Resource = _core.Resource;
     img.ShowDialog();
     if (img.DialogResult == System.Windows.Forms.DialogResult.OK)
     {
         txtIcon.Image = img.ImageObject;
     }
 }
Exemplo n.º 3
0
 private void btnPicEnter_Click(object sender, EventArgs e)
 {
     ISM.Template.FormImage img = new FormImage();
     img.Resource = _core.Resource;
     img.ShowDialog();
     if (img.DialogResult == System.Windows.Forms.DialogResult.OK)
     {
         picPicture.Image = img.ImageObject;
     }
 }
Exemplo n.º 4
0
        private void userButton1_Click(object sender, EventArgs e)
        {
            double[] data = new double[256];
            for (int i = 0; i < data.Length / 2; i++)
            {
                data[i] = 5;
            }

            using (FormImage form = new FormImage(HslCommunication.Algorithms.Fourier.FFTHelper.GetFFTImage(data, 1000, 600, Color.Blue)))
            {
                form.ShowDialog( );
            }
        }
Exemplo n.º 5
0
        private void btngj_Click(object sender, EventArgs e)
        {
            if (_formGJ == null)
            {
                _formGJ = new FormImage(0, FishEntity.ImageTypeEnum.GJ);
            }

            _formGJ.SetData(_fish == null ? 0 : _fish.id, FishEntity.ImageTypeEnum.GJ);

            _formGJ.StartPosition = FormStartPosition.CenterParent;
            if (_formGJ.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
            }
        }
Exemplo n.º 6
0
        private void userButton2_Click(object sender, EventArgs e)
        {
            // 信号二,正弦波叠加,额外增加了一个干扰信号

            double[] data = new double[256];
            for (int i = 0; i < data.Length; i++)
            {
                data[i] = 5 * Math.Sin(i * Math.PI / 128) + 5 + 0.5f * Math.Cos(i * 8 * Math.PI / 128);
            }

            using (FormImage form = new FormImage(HslCommunication.Algorithms.Fourier.FFTHelper.GetFFTImage(data, 1000, 600, Color.Blue)))
            {
                form.ShowDialog( );
            }
        }
Exemplo n.º 7
0
 private void btnZoom_Click(object sender, EventArgs e)
 {
     if (picPicture.Image != null)
     {
         ISM.Template.FormImage frm = new FormImage();
         frm.Resource    = _core.Resource;
         frm.ImageObject = picPicture.Image;
         frm.ShowDialog();
         if (frm.DialogResult == DialogResult.OK)
         {
             picPicture.Image = frm.ImageObject;
         }
     }
     else
     {
         MessageBox.Show("Зураг сонгогдоогүй байна .");
     }
 }