Thx for help..
as this form will dynamic create drawing stuffs in run time thus cant change
picturebox.img. is there have other alternatives?
MAY
"Scatropolis" <ch*****@frayed.net> ???
news:Ol**************@TK2MSFTNGP11.phx.gbl ???...
it's actually best to draw on a Image/Bitmap and put that image on the form.
pictureBox1.Image =ew Bitmap(pictureBox1.Width, pictureBox1.Height);
Image bmp =ictureBox1.Image;
Graphics g =raphics.FromImage(bmp);
//Edit bmp
g.FillRectangle(new SolidBrush(Color.White), 0, 0, pictureBox1.Width,
pictureBox1.Height);
for(int I= I < pictureBox1.Width; I+)
g.DrawLine(new Pen(Color.Black), pictureBox1.Width - I, 0, 0, I);
//Display bmp
pictureBox1.Image =mp;
then to save the image all you'd have to do is make the image public or
something and
bmp.SaveTo("C:\stuff.png");
Hope that helps
On 06/05/2004 "MAY" <pa****@hotmail.com> wrote:
Hi,
I drew some lines on a form and i want convert these lines into a bitmap.
How can i do that?
MAY