- fileName
- A string containing the name of the exe (or dll) from which the resource will be captured.
- transparentColor
- A color to be used in place of the transparent color of an Icon or Cursor.
- resourceType
- Type of resource to be captured. For possible values refer to ScreenCaptureResourceType.
- dialogType
- Type of dialog to be displayed. For possible values refer to ScreenCaptureFromExeDialogType.
- flags
- Flags that determine the options dialog. For possible values refer to ScreenCaptureDialogFlags.
- captureInformation
- A Leadtools.ScreenCapture.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.
- helpCallback
- A delegate method that will handle the event.
Visual Basic (Declaration) | |
---|---|
Public Function ShowCaptureFromExeDialog( _ ByVal fileName As String, _ ByVal transparentColor As Color, _ ByVal resourceType As ScreenCaptureResourceType, _ ByVal dialogType As ScreenCaptureFromExeDialogType, _ ByVal flags As ScreenCaptureDialogFlags, _ ByVal captureInformation As ScreenCaptureInformation, _ ByVal helpCallback As ScreenCaptureHelpCallback _ ) As RasterImage |
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As ScreenCaptureEngine Dim fileName As String Dim transparentColor As Color Dim resourceType As ScreenCaptureResourceType Dim dialogType As ScreenCaptureFromExeDialogType Dim flags As ScreenCaptureDialogFlags Dim captureInformation As ScreenCaptureInformation Dim helpCallback As ScreenCaptureHelpCallback Dim value As RasterImage value = instance.ShowCaptureFromExeDialog(fileName, transparentColor, resourceType, dialogType, flags, captureInformation, helpCallback) |
C# | |
---|---|
public RasterImage ShowCaptureFromExeDialog( string fileName, Color transparentColor, ScreenCaptureResourceType resourceType, ScreenCaptureFromExeDialogType dialogType, ScreenCaptureDialogFlags flags, ScreenCaptureInformation captureInformation, ScreenCaptureHelpCallback helpCallback ) |
C++/CLI | |
---|---|
public: RasterImage^ ShowCaptureFromExeDialog( String^ fileName, Color transparentColor, ScreenCaptureResourceType resourceType, ScreenCaptureFromExeDialogType dialogType, ScreenCaptureDialogFlags flags, ScreenCaptureInformation^ captureInformation, ScreenCaptureHelpCallback^ helpCallback ) |
Parameters
- fileName
- A string containing the name of the exe (or dll) from which the resource will be captured.
- transparentColor
- A color to be used in place of the transparent color of an Icon or Cursor.
- resourceType
- Type of resource to be captured. For possible values refer to ScreenCaptureResourceType.
- dialogType
- Type of dialog to be displayed. For possible values refer to ScreenCaptureFromExeDialogType.
- flags
- Flags that determine the options dialog. For possible values refer to ScreenCaptureDialogFlags.
- captureInformation
- A Leadtools.ScreenCapture.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.
- helpCallback
- A delegate method that will handle the event.
Return Value
A Leadtools.RasterImage that represents the captured image.For an example, refer to ScreenCaptureEngine.
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7
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
GetResourcesCount Method
IsCaptureActive Property
StopCapture Method