немножко, поумни4аю )
| Код | private void pictureBox1_Paint(object sender, PaintEventArgs e) { pictureBox1.Image=new Bitmap(pictureBox1.Width,pictureBox1.Height); Graphics grfx = Graphics.FromImage(pictureBox1.Image); Pen pen=new Pen(Color.Black,2);
grfx.DrawEllipse(pen, 10, 10, 200, 200); grfx.DrawImage(pictureBox1.Image, 0, 0);
Image btmp = pictureBox1.Image; //добавь еще 2 строки Graphics myGraphics = pictureBox1.CreateGraphics(); myGraphics.DrawImage(pictureBox1.Image, 0, 0); btmp.Save("C:\\1.bmp"); }
|
|