Implementing Screen Capture

The Screen Capture libraries provide methods for capturing all or part of the screen into a bitmap. For a list of required DLL's, refer to Screen Capture Files To Be Included With Your Application. You can capture FullScreen, ActiveWindow, ActiveClientArea, MenuUnderCursor, WindowUnderCursor, SelectedObject, MouseCursor or Wallpaper. You can capture a particular area of the screen in any of the following shapes: Rect, Square, RoundRect, RoundSquare, Triangle, Ellipse, Circle, Polygon or FreeHand. Icon, Bitmap, and Cursor resources can be captured from 32-bit Windows EXE and DLL files. Captures can be tied to a HotKey combination, can be delayed, and can be repeated with a specified interval. By default, most capture operations are tied to the F11 key. For information concerning which capture methods use F11, refer to the individual methods.

For more information, refer to the dialog properties, methods, and events:

Properties

EnableMethodErrors

CaptureCursor

CaptureStatusCursor

CaptureHotKey

CaptureHotKeyModifiers

CaptureCancelKey

CaptureDelay

CaptureCount

CaptureInterval

CaptureInfohWnd

CaptureInfoTop

CaptureInfoLeft

CaptureInfoWidth

CaptureInfoHeight

CaptureInfoResType

CaptureInfoResIndex

CaptureInfoResourceId

CaptureInfoExeName

CaptureAreaFillPattern

CaptureAreaFillForeColor

CaptureAreaFillBackColor

CaptureAreaDrawLineStyle

CaptureAreaDrawLineColor

CaptureAreaDrawEllipseWidth

CaptureAreaDrawEllipseHeight

CaptureAreaDrawCursor

CaptureAreaTextForeColor

CaptureAreaTextBackColor

CaptureAreaInfoLeft

CaptureAreaInfoTop

CaptureAreaInfoWidth

CaptureAreaInfoHeight

CaptureAreaShowDrawCursor

CaptureAreaIncludeCursor

CaptureAreaEnableKeyboard

CaptureAreaShowOpaqueText

CaptureAreaShowCursorPosition

CaptureAreaShowAreaSize

CaptureAreaShowInfoWindow

CaptureAreaSensitiveInfoWindow

CaptureAreaBitmapWithRegion

CaptureAreaZoomFactor

CaptureObjectInvert

CaptureObjectEnableKeyboard

CaptureObjectBorderWidth

CaptureObjectSelectCursor

Bitmap

TransparentColor

CaptureAreaType

CaptureAreaUseCrossLinesCursor

ShowHelpButton property

 

Methods

CaptureActiveWindow

CaptureActiveClient

CaptureFullScreen

CaptureMenuUnderCursor

CaptureSelectedObject

CaptureArea

CaptureMouseCursor

CaptureOptionDlg

CaptureAreaOptionDlg

CaptureObjectOptionDlg

CaptureEXEDlg

CaptureGetResourceCount

CaptureEXE

CaptureWallPaper

CaptureWindowUnderCursor

ResetAreaOptions

ResetObjectOptions

StopCapture

IsCaptureActive

StartCapture

Events

OnCaptureImage

OnCaptureHotKeyPressed

OnScreenDlgHelp event