Advertisement
ASP_Volume3 Graphics/ Sound #58702

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

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.

ソースコード
original-source
Upload
オリジナルのコメント (3)
Wayback Machineから復元