LEADTOOLS Screen Capture (Leadtools.ScreenCapture assembly)

CaptureFromExe Method

Show in webframe





A string containing the name of the exe (or dll) from which the resource will be captured.
Type of resource to be captured. For possible values refer to ScreenCaptureResourceType.
Specifies the index of the resource being captured.
If true, then the resourceId is the index position of the requested resource. Otherwise, resourceId is the resource id of the requested resource.
Background color to be used for icons.
Captures an image of a resource stored in an exe or dll.
Syntax
'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
'Usage
 
Dim instance As ScreenCaptureEngine
Dim fileName As String
Dim resourceType As ScreenCaptureResourceType
Dim resourceId As String
Dim captureByIndex As Boolean
Dim backgroundColor As Color
Dim value As RasterImage
 
value = instance.CaptureFromExe(fileName, resourceType, resourceId, captureByIndex, 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 Leadtools.RasterImage that represents the captured image.
Example
For an example, refer to ScreenCaptureEngine.
Requirements

Target Platforms

See Also

Reference

ScreenCaptureEngine Class
ScreenCaptureEngine 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

 

 


Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.