Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

screenshot c# WinForms

// doing a screenshot from control "panel2"
string filename = "временный файл.jpeg";
Bitmap printscreen = new Bitmap(panel2.Width - 5, panel2.Height - 5);
Graphics graphics = Graphics.FromImage(printscreen as System.Drawing.Image);
int top = this.Top + panel2.Top + 35;
int left = this.Left + panel2.Left + 10;
graphics.CopyFromScreen(left, top, 0, 0, printscreen.Size);
printscreen.Save(filename, System.Drawing.Imaging.ImageFormat.Jpeg);
Comment

PREVIOUS NEXT
Code Example
Csharp :: range to 01 
Csharp :: bubble sort recursive c# 
Csharp :: uity pause game 
Csharp :: how to disable button until the value is selected c# 
Csharp :: unity int inputfield value 
Csharp :: 7485438 
Csharp :: send to main args dotnet debug 
Csharp :: compare 0001/01/01 in c# 
Csharp :: math round to next integer c# 
Csharp :: c# switch expression 8.0 
Csharp :: how to input data several times in c# 
Csharp :: switch case c# enum tostring 
Csharp :: wpf c# add style to object 
Csharp :: ef core totable 
Csharp :: C# bitwise complement 
Csharp :: Hangfire Creation Table With EFCore 
Csharp :: replace update claims c# 
Csharp :: serenity.is required field 
Csharp :: and in c# 
Csharp :: c# use list as a paramter 
Csharp :: Precision comparison in C# 
Csharp :: C# accesseurs 
Csharp :: c# compare char arrays 
Csharp :: c# file watcher specific file 
Csharp :: how to handle list properties in c# of string type 
Csharp :: how to call method in different project in c# visual studio 
Csharp :: how to make a variable unity 
Csharp :: integer to boolean conversion in unity C# 
Csharp :: rate game in unity 
Csharp :: c# second last index 
ADD CONTENT
Topic
Content
Source link
Name
3+1 =