Implementing Screen Capture

With the LEADTOOLS Capture feature you can capture the:

LEADTOOLS also allows for capture of a selected area of the screen in a wide array of shapes such as:

Bitmap, Icon and Cursor resources can be captured from 16 or 32-bit Windows EXE and DLL files. Options include:

Capturing Screen Images:

LEADTOOLS supports a number of classes and methods for capturing images from the screen. Before starting to capture, you need to call ScreenCaptureEngine.Startup to start up the engine. When you finish using the class, do not forget to call ScreenCaptureEngine.Shutdown to shut down the engine.

You can capture the entire screen, or you can select to capture some small part of the screen. Use ScreenCaptureEngine.CaptureWindow to capture a window whose handle is passed to the method, and ScreenCaptureEngine.CaptureFullScreen to capture the entire screen. Use ScreenCaptureEngine.CaptureActiveWindow to capture all of the active window. To capture just the client portion of the active window, use ScreenCaptureEngine.CaptureActiveClient. Use ScreenCaptureEngine.CaptureWindowUnderCursor to capture the window immediately under the cursor, and ScreenCapture.ScreenCaptureEngine.CaptureSelectedObject to capture an image of the selected window's object. To capture an image of a window handle, use ScreenCaptureEngine.CaptureWindow. In addition, you can capture wallpaper, menus and the mouse cursor, using ScreenCaptureEngine.CaptureWallpaper, ScreenCaptureEngine.CaptureMenuUnderCursor and ScreenCaptureEngine.CaptureMouseCursor respectively. To capture an area, use ScreenCaptureEngine.CaptureArea. LEADTOOLS provides two functions for capturing bitmaps, cursors and icons from EXEs or DLLs, ScreenCaptureEngine.CaptureFromExe and ScreenCaptureEngine.ShowCaptureFromExeDialog. ScreenCaptureEngine.ShowCaptureFromExeDialog provides a dialog box for entering capture options. Finally, to stop a capture operation, use ScreenCaptureEngine.StopCapture.

The hot key needs to be pressed to complete the capture. The default hot key is F11. To change the hot key you need to use ScreenCaptureEngine.CaptureOptions property. The user can immediately capture by setting the hot key to Keys.None.

Getting and Setting Capture Information:

In addition to the capture functions given above, there are a number of methods and properties that can be used to get and set capture information. There is also one event handler and two delegate methods to handle different kinds of events. These methods and properties are as follows: ScreenCaptureEngine.CaptureOptions property, ScreenCaptureEngine.IsCaptureActive property, ScreenCaptureEngine.ShowCaptureAreaOptionsDialog method, ScreenCaptureEngine.ShowCaptureObjectOptionsDialog method, ScreenCaptureEngine.ShowCaptureOptionsDialog method, ScreenCaptureEngine.DefaultCaptureAreaOptions method, ScreenCaptureEngine.DefaultCaptureObjectOptions method, ScreenCaptureEngine.GetResourcesCount method, ScreenCaptureEngine.SetCaptureHotkeyCallback method, ScreenCaptureEngine.CaptureInformation event handler, ScreenCaptureHotkeyCallback delegate method, ScreenCaptureHelpCallback delegate method.

Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
LEADTOOLS Imaging, Medical, and Document
Click or drag to resize