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

ScaleMode

CaptureCursorIndex

CaptureCursor

CaptureStatusCursorIndex

CaptureStatusCursor

CaptureHotKey

CaptureHotKeyModifiers

CaptureCancelKey

CaptureDelay

CaptureCount

CaptureInterval

CaptureInfohWnd

CaptureInfoTop

CaptureInfoLeft

CaptureInfoWidth

CaptureInfoHeight

CaptureInfoResType

CaptureInfoResIndex

CaptureInfoResourceId

CaptureInfoExeName

CaptureAreaFillPattern

CaptureAreaFillForeColor

CaptureAreaFillBackColor

CaptureAreaDrawLineStyle

CaptureAreaDrawLineColor

CaptureAreaDrawEllipseWidth

CaptureAreaDrawEllipseHeight

CaptureAreaDrawCursorIndex

CaptureAreaDrawCursor

CaptureAreaTextForeColor

CaptureAreaTextBackColor

CaptureAreaInfoLeft

CaptureAreaInfoTop

CaptureAreaInfoWidth

CaptureAreaInfoHeight

CaptureAreaShowDrawCursor

CaptureAreaIncludeCursor

CaptureAreaEnableKeyboard

CaptureAreaShowOpaqueText

CaptureAreaShowCursorPosition

CaptureAreaShowAreaSize

CaptureAreaShowInfoWindow

CaptureAreaSensitiveInfoWindow

CaptureAreaBitmapWithRegion

CaptureAreaZoomFactor

CaptureObjectInvert

CaptureObjectEnableKeyboard

CaptureObjectBorderWidth

CaptureObjectSelectCursorIndex

CaptureObjectSelectCursor

Bitmap

TransparentColor

CaptureAreaType

ShowHelpButton property

CaptureAreaUseCrossLinesCursor

OptimizedHotkey property

 

 

Methods

CaptureActiveWindow

CaptureActiveClient

CaptureFullScreen

CaptureMenuUnderCursor

CaptureSelectedObject

CaptureArea

CaptureMouseCursor

CaptureOptionDlg

CaptureAreaOptionDlg

CaptureObjectOptionDlg

CaptureEXEDlg

CaptureGetResourceCount

CaptureEXE

CaptureWallPaper

CaptureWindowUnderCursor

ResetAreaOptions

ResetObjectOptions

StopCapture

IsCaptureActive

Events

CaptureImage

CaptureHotKeyPressed

ScreenDlgHelp event