public RectangularForm()
        {
            InitializeComponent();

            bmp               = new Bitmap(pictureBox1.Width, pictureBox1.Height);
            rectangularPen    = new RectangularPen();
            pen               = new Pen(CurrentColor, size);
            pictureBox1.Image = bmp;
            g = Graphics.FromImage(pictureBox1.Image);
            g.Clear(Color.White);
        }
Пример #2
0
        public RectangularForm()
        {
            InitializeComponent();

            bmp               = new Bitmap(pictureBox1.Width, pictureBox1.Height);
            rectangularPen    = new RectangularPen();
            pen               = new Pen(CurrentColor, size);
            pictureBox1.Image = bmp;
            g = Graphics.FromImage(pictureBox1.Image);
            g.Clear(Color.White);


            pic.Parent      = pictureBox1;
            pic.BackColor   = Color.Transparent;
            pic.SizeMode    = PictureBoxSizeMode.AutoSize;
            pic.BorderStyle = BorderStyle.FixedSingle;
            pic.Visible     = false;

            //klon.pbox1 = (Bitmap)pictureBox1.Image;
        }