Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

c# windows grab screenshot

private Bitmap GetSreenshot()
{
  Bitmap bm = new Bitmap(Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height);
  Graphics g = Graphics.FromImage(bm);
  g.CopyFromScreen(0, 0, 0, 0, bm.Size);
  return bm;
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: unity quit code 
Csharp :: how to change the color of your text in c# 
Csharp :: asp.net core .gitignore 
Csharp :: c# list files in directory 
Csharp :: c# get all inherited classes of a class 
Csharp :: c# foreach enum 
Csharp :: randomize through array in C# 
Csharp :: c# executable directory 
Csharp :: how to get the directory of the project in c# 
Csharp :: c# get current date 
Csharp :: c# set a guid 
Csharp :: unity C# catch index out or range exception 
Csharp :: c# how to delete a file 
Csharp :: switch case c# range 
Csharp :: openfiledialog c# 
Csharp :: get random point in collider unity 
Csharp :: how to change scenes with button press in unity c# 
Csharp :: #region in c# 
Csharp :: unity main texture not working 
Csharp :: Convert Newtonsoft.Json.Linq.JArray to type System.Collections.Generic 
Csharp :: how to maximize but show taskbar c# 
Csharp :: c# stop 
Csharp :: unity c# reference link url 
Csharp :: c# fontweight in code 
Csharp :: set active for a seconds 
Csharp :: add items to listbox from text file c# 
Csharp :: print unity 
Csharp :: check if network is available c# 
Csharp :: csharp datetime string format 
Csharp :: unityWebRequest get returned data 
ADD CONTENT
Topic
Content
Source link
Name
4+8 =