Advertisement
6_2008-2009 Graphics/ Sound #209035

ScreenCapture

ScreenCapture.vb is a .Net class that allows you take a screenshot (printscreen) of the desktop, or part of it, or of the active window, or of any window you got the HWND from. It doesn't use sendkeys or the clipboard, this is a proper implementation with API. Basicly the class exists out of two shared functions that are overloaded a bit, give me a vote if you like it. Usage: PictureBox1.Image = ScreenCapture.GrabScreen() PictureBox1.Image = ScreenCapture.GrabActiveWindow() PictureBox1.Image = ScreenCapture.GrabWindow(SomeHwnd) PictureBox1.Image = ScreenCapture.GrabScreen(X, Y, Width, Height) PictureBox1.Image = ScreenCapture.GrabScreen(Rect) PictureBox1.Image = ScreenCapture.GrabScreen(Location, Size)

AI

Tóm tắt bởi AI: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Mã nguồn
original-source
Upload
Bình luận gốc (3)
Được khôi phục từ Wayback Machine