Capturing Screen Images
LEADTOOLS supports a number of functions for capturing images from the screen. You can capture the entire screen , or you can elect to capture some small part of the screen. LScreenCapture::CaptureFullScreen lets you capture the entire screen, while LScreenCapture::CaptureActiveWindow lets you capture all of the active window. To capture just the client portion of the active window, use LScreenCapture::CaptureActiveClient. LScreenCapture::CaptureWindowUnderCursor captures the window immediately under the cursor, and LScreenCapture::CaptureSelectedObject captures an image of the selected window's object. . To capture an image of a window handle, use LScreenCapture::CaptureWallpaper.
In addition, you can capture wallpaper, menus and the mouse cursor, using LScreenCapture::CaptureWallPaper, LScreenCapture::CaptureMenuUnderCursor and LScreenCapture::CaptureMouseCursor. To capture an area, use LScreenCapture::CaptureArea. LEADTOOLS provides two functions for capturing bitmaps, cursors and icons from EXEs or DLLs, LScreenCapture::CaptureFromEXE and LScreenCapture::CaptureFromEXEDlg. Finally, to stop a capture operation, use LScreenCapture::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 call LScreenCapture::SetCaptureOptions function. The user can immediately capture by setting the hot key to zero (0).
Getting and Setting Capture Information
In addition to the capture functions given above, there are a number of functions for getting and setting capture information, and two overridables. These are as follows: LScreenCapture::CaptureAreaOptionDlg, LScreenCapture::GetCaptureOptions, LScreenCapture::CaptureObjectOptionDlg, LScreenCapture::CaptureGetResCount, LScreenCapture::SetCaptureOptions, LScreenCapture::SetCaptureOptionDlg, LScreenCapture::IsCaptureActive, LScreenCapture::ScreenCaptureCallBack, LScreenCapture::CaptureHotKeyCallBack, and LScreenCapture::ScreenCaptureHelpCallBack.
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET