Esempio n. 1
0
        private void SetSymbol()
        {
            GenerateImage newImage = new GenerateImage(textBox2.Text);

            bm2p = newImage.GetImage();

            pictureBox1.Image = bm2p;
            originalBitmap    = bm2p;
            previewBitmap     = originalBitmap.CopyToSquareCanvas(pictureBox1.Width);
        }
Esempio n. 2
0
        void CreateImage()
        {
            ExtBitmap.BlurType blurType = ((ExtBitmap.BlurType)cmbBlurFilter.SelectedItem);
            GenerateImage      newImage = new GenerateImage();

            allPrint = newImage.GetImage();
            //     allPrint = allPrint.ImageBlurFilter(blurType);
            allPrint = newImage.ElongateImage(allPrint);
            textBox1.AppendText("Данные подготовлены!" + Environment.NewLine);
            //     allPrint = newImage.Blackout(allPrint);
            NormalDistibution norm = new NormalDistibution();

            //    allPrint = norm.generateBlot(allPrint);
            allPrint.Save("picture" + cmbBlurFilter.SelectedItem.ToString() + ".bmp", System.Drawing.Imaging.ImageFormat.Bmp);
        }