Ejemplo n.º 1
0
        public Form1()
        {
            InitializeComponent();

            this.AllowDrop = true;
            clear          = new SolidBrush(colorDialog3.Color);
            frameMain      = new Bitmap(panel2.Size.Width, panel2.Size.Height);
            Graphics gTemp = Graphics.FromImage(frameMain);

            gTemp.Clear(clear.Color);
            color_border.BackColor = colorDialog1.Color;
            color_fill.BackColor   = colorDialog2.Color;
            BackGround.BackColor   = colorDialog3.Color;
            g           = panel2.CreateGraphics();
            clearShape  = new ClearS(clear);
            curentShape = prevShape = new FreeDrawS(new Pen(colorDialog1.Color, (float)numericUpDown1.Value));
        }
Ejemplo n.º 2
0
 public FreeDrawS(FreeDrawS r)
 {
     pen    = r.pen;
     points = r.points;
 }