コード例 #1
0
ファイル: Form1.cs プロジェクト: j0eyWh/DrawApp
        public Form1()
        {
            InitializeComponent();

            pictureBox1.Image = new Bitmap(pictureBox1.Width, pictureBox1.Height);
            pictureBox2.Image = new Bitmap(pictureBox2.Width, pictureBox2.Height);
            canvas = Graphics.FromImage(pictureBox1.Image);
            canvas.Clear(Color.White);
            previewCanvas = Graphics.FromImage(pictureBox2.Image);

            pictureBox1.Controls.Add(pictureBox2);
            CircleBrushSubForm = new CircleBrushProprietiesForm(this);

            saveImageDialog.AddExtension = false;

            saveImageDialog.Filter = "Jpeg (*.jpg)|*.jpg|BMP(*.bmp)|*.bmp";
        }
コード例 #2
0
ファイル: Form1.cs プロジェクト: j0eyWh/DrawApp
 private void showCirclePropWindow_Click(object sender, EventArgs e)
 {
     CircleBrushSubForm = new CircleBrushProprietiesForm(this);
     CircleBrushSubForm.Show();
 }