V
Vin
Hi,
I am using the following code to draw whatever the user draws using
x,y.
// draws lines directly on a winform.
CreateGraphics().DrawLine(APen, x, y, OldX, OldY);
Now how do I save the drawing on to a bmp file on my harddisk? C# code
in this regard would be very helpful. I tried all forums but invain.
I tried with Graphics object and then
objBitmap=new Bitmap(400, 200, objGraphics);
objBitmap.Save(@"c:\test.bmp", ImageFormat.Bmp);
which didn't work, leaving me with a blank test.bmp.
Also help me load a bmp from hard disk to this form? C# code please.
Anyone out there who could help me?
Cheers
Vin
I am using the following code to draw whatever the user draws using
x,y.
// draws lines directly on a winform.
CreateGraphics().DrawLine(APen, x, y, OldX, OldY);
Now how do I save the drawing on to a bmp file on my harddisk? C# code
in this regard would be very helpful. I tried all forums but invain.
I tried with Graphics object and then
objBitmap=new Bitmap(400, 200, objGraphics);
objBitmap.Save(@"c:\test.bmp", ImageFormat.Bmp);
which didn't work, leaving me with a blank test.bmp.
Also help me load a bmp from hard disk to this form? C# code please.
Anyone out there who could help me?
Cheers
Vin