←Select platform

CaptureFromExe Method

Summary

Captures an image of a resource stored in an exe or dll.

Syntax

C#
VB
C++
public Leadtools.RasterImage CaptureFromExe(  
   string fileName, 
   Leadtools.Screencapture.ScreenCaptureResourceType resourceType, 
   string resourceId, 
   bool captureByIndex, 
   Color backgroundColor 
) 
Public Function CaptureFromExe( _ 
   ByVal fileName As String, _ 
   ByVal resourceType As Leadtools.Screencapture.ScreenCaptureResourceType, _ 
   ByVal resourceId As String, _ 
   ByVal captureByIndex As Boolean, _ 
   ByVal backgroundColor As Color _ 
) As Leadtools.RasterImage 
public: 
Leadtools.RasterImage^ CaptureFromExe(  
   String^ fileName, 
   Leadtools.Screencapture.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 Leadtools.RasterImage that represents the captured image.

Example

For an example, refer to ScreenCaptureEngine.

Requirements

Target Platforms

Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
Leadtools.ScreenCapture Assembly
Click or drag to resize