Advertisement
7_2009-2012 Graphics/ Sound #231553

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

Yapay Zeka Özeti: 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.

Kaynak Kod
original-source
Upload
Orijinal Yorumlar (3)
Wayback Machine'den kurtarıldı