saving image from screen
-
hi all how can i use the graphics object of the form to store its contents as an image thanks Generator
-
hi all how can i use the graphics object of the form to store its contents as an image thanks Generator
-
You can't. Use the DrawToBitmap method of the form, or create an Image and use the Graphics.CopyFromScreen method on a Graphics object for the image.
--- single minded; short sighted; long gone;
ok what about if i want to draw in empty image by my self dawing some images and some shapes thanx Generator
-
ok what about if i want to draw in empty image by my self dawing some images and some shapes thanx Generator
-
Create a
Bitmap
object and aGraphics
object from it, then draw using theGraphics
object.--- single minded; short sighted; long gone;
sorry, but can i have some explanation i want to draw some objects in image then save this image in disk the save is not a problem thanx Generator
-
sorry, but can i have some explanation i want to draw some objects in image then save this image in disk the save is not a problem thanx Generator
hi
Bitmap workSpaceBitmap = new Bitmap(tabctrlMain.SelectedTab.Width, tabctrlMain.SelectedTab.Height); tabctrlMain.SelectedTab.DrawToBitmap(workSpaceBitmap, tabctrlMain.SelectedTab.Bounds); workSpaceBitmap.Save("c:\\image.jpeg", ImageFormat.Jpeg);
i write this code and thanx very much for ur help(DrawToBitmap u told me about it) thanx alot but one question if there is a scroll bar is this code will draw disappeared parts of screen to image or not Generator