question about taking screenshot from games by using VB 2010

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Hello I made a program that take screenshots but it doesnt take screenshot from 3d games what is the code :( and here is my code

Dim bounds As Rectangle<br/>
Dim screenshot As System.Drawing.Bitmap<br/>
Dim graph As Graphics<br/>
bounds = Screen.PrimaryScreen.WorkingArea<br/>
screenshot = New System.Drawing.Bitmap(bounds.Width, bounds.Height, System.Drawing.Imaging.PixelFormat.Format32bppArgb)<br/>
graph = Graphics.FromImage(screenshot)<br/>
graph.CopyFromScreen(bounds.X,bounds.Y, 0, 0, bounds.Size, CopyPixelOperation.SourceCopy)<br/>
PictureBox1.Image = screenshot

my program is bigger than this too much :D but these are the important codes :D

View the full article
 
Back
Top