Advertisement
ASP_Volume2 Graphics/ Sound #43967

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 恢复