Visual Basic (Declaration) | |
---|---|
Public Function CaptureFromExe( _ ByVal fileName As String, _ ByVal resourceType As ScreenCaptureResourceType, _ ByVal resourceId As String, _ ByVal captureByIndex As Boolean, _ ByVal backgroundColor As Color _ ) As RasterImage |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public RasterImage CaptureFromExe( string fileName, ScreenCaptureResourceType resourceType, string resourceId, bool captureByIndex, Color backgroundColor ) |
Managed Extensions for C++ | |
---|---|
public: RasterImage CaptureFromExe( string* fileName, ScreenCaptureResourceType resourceType, string* resourceId, bool captureByIndex, Color backgroundColor ) |
C++/CLI | |
---|---|
public: RasterImage CaptureFromExe( String^ fileName, ScreenCaptureResourceType resourceType, String^ resourceId, bool captureByIndex, Color backgroundColor ) |
Parameters
- fileName
- A string containing the name of the exe (or dll) from which the resource will be captured.
- resourceType
- Type of resource to be captured. For possible values refer to ScreenCaptureResourceType.
- resourceId
- Specifies the index of the resource being captured.
- captureByIndex
- If true, then the resourceId is the index position of the requested resource. Otherwise, resourceId is the resource id of the requested resource.
- backgroundColor
- Background color to be used for icons.
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
CaptureWindow 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