Visual Basic (Declaration) | |
---|---|
Public Function CaptureWindow( _ ByVal windowHandle As IntPtr, _ ByVal captureType As ScreenCaptureWindowType, _ ByVal captureInformation As ScreenCaptureInformation _ ) As RasterImage |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public RasterImage CaptureWindow( IntPtr windowHandle, ScreenCaptureWindowType captureType, ScreenCaptureInformation captureInformation ) |
Managed Extensions for C++ | |
---|---|
public: RasterImage CaptureWindow( IntPtr windowHandle, ScreenCaptureWindowType captureType, ScreenCaptureInformation* captureInformation ) |
C++/CLI | |
---|---|
public: RasterImage CaptureWindow( IntPtr windowHandle, ScreenCaptureWindowType captureType, ScreenCaptureInformation^ captureInformation ) |
Parameters
- windowHandle
- A handle to the window being captured.
- captureType
- A value that indicates the capture type. For possible values refer to ScreenCaptureWindowType.
- captureInformation
- A ScreenCaptureInformation class object to be filled with information regarding the source for the captured image. Pass NULL if you are not interested in extra information about the capture.
Return Value
A RasterImage that represents the captured image.For an example, refer to ScreenCaptureEngine.
Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
Reference
ScreenCaptureEngine ClassScreenCaptureEngine Members
Implementing Screen Capture
Startup Method
Shutdown Method
CaptureActiveWindow Method
CaptureActiveClient Method
CaptureWallpaper Method
CaptureFullScreen Method
CaptureMenuUnderCursor Method
CaptureWindowUnderCursor Method
CaptureSelectedObject Method
CaptureArea Method
CaptureMouseCursor Method
CaptureFromExe Method
ShowCaptureFromExeDialog Method
GetResourcesCount Method
IsCaptureActive Property
StopCapture Method