Leadtools.ScreenCapture Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
ShowCaptureFromExeDialog Method
See Also 
Leadtools.ScreenCapture Namespace > ScreenCaptureEngine Class : ShowCaptureFromExeDialog Method



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 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.
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 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.
Displays a dialog, and captures an image of a resource stored in an exe or dll.

Syntax

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)

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 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 RasterImage that represents the captured image.

Example

For an example, refer to ScreenCaptureEngine.

Requirements

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

See Also