Version 10

Version 10 is the first version of the LEADTOOLS Screen Capture C API.

Screen Capture capabilities becomes the 15th imaging technology category found in LEADTOOLS. New capture functions allow you to capture all or part of the screen into a bitmap. Capture the entire screen, active window, menu under cursor, window under cursor (button, tool bar, icon, or client area), selected object, mouse cursor or wallpaper. Allows for capture of a selected area of the screen in a wide array of shapes such as rectangle, rounded rectangle, ellipse, polygon or freehand. Icon, bitmap and cursor resources can be captured from 32-bit Windows EXE and DLL files. Options include Multi-capture with callback, Hot Keys, and time interval. Great for presentation and application documentation.

New error messages

The following constants for error messages have been added:

New constant

Value Description
ERROR_CAPTURE_STILL_IN_PROCESS capture is still in progress
ERROR_INVALID_DELAY the user passed an invalid delay value
ERROR_INVALID_COUNT the user passed an invalid capture count
ERROR_INVALID_INTERVAL the user passed an invalid interval value
ERROR_HOTKEY_CONFILCTS_WITH_CANCELKEY the user specified the hotkey to be the same as the cancel key
ERROR_CAPTURE_INVALID_AREA_TYPE wrong area type passed to L_CaptureArea()
ERROR_CAPTURE_NO_OPTION_STRUCTURE invalid options structure pointer
ERROR_CAPTURE_INVALID_FILL_PATTERN invalid fill pattern
ERROR_CAPTURE_INVALID_LINE_STYLE invalid line style
ERROR_CAPTURE_INVALID_INFOWND_POS invalid position for the info window
ERROR_CAPTURE_INVALID_INFOWND_SIZE invalid size for the info window
ERROR_CAPTURE_ZERO_AREA_SIZE capture area is equal to zero
ERROR_CAPTURE_FILE_ACCESS_FAILED The specified filename couldn't be read
ERROR_CAPTURE_INVALID_32BIT_EXE_OR_DLL The specified filename is not a valid 32bit EXE/DLL
ERROR_CAPTURE_INVALID_RESOURCE_TYPE The specified resource type is not supported
ERROR_CAPTURE_INVALID_RESOURCE_INDEX The index resource is out of range
ERROR_CAPTURE_NO_ACTIVE_WINDOW no active window
ERROR_CAPTURE_CANNOT_CAPTURE_WINDOW cannot capture window
ERROR_CAPTURE_STRING_ID_NOT_DEFINED undefined string ID
ERROR_CAPTURE_DELAY_LESS_THAN_ZERO delay must be at least zero
ERROR_CAPTURE_NO_MENU no menu to capture

The rest of this topic lists the new functions in version 10.

Screen Capture:

L_CaptureActiveClient

L_CaptureActiveWindow

L_CaptureArea

L_CaptureAreaOptionDlg

L_CaptureFromExe

L_CaptureFromExeDlg

L_CaptureFullScreen

L_CaptureGetResCount

L_CaptureMenuUnderCursor

L_CaptureMouseCursor

L_CaptureSelectedObject

L_CaptureSetHotKeyCallback

L_CaptureWallPaper

L_CaptureWindowUnderCursor

L_GetCaptureOption

L_GetDefaultAreaOption

L_GetDefaultObjectOption

L_IsCaptureActive

L_SetCaptureOption

L_SetCaptureOptionDlg

L_StopCapture

LEADCAPTUREOPTION

LEADCAPTUREINFO

LEADCAPTUREAREAOPTION

LEADCAPTUREOBJECTOPTION

CAPTURECALLBACK Function

CAPTUREHOTKEYCALLBACK Function

Help Version 20.0.2020.4.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Screen Capture C API Help