Ets_Gui_Screen_Bitmap_Rect_Capture()
Note: Requires OPNET Development Kit
Abstract
Captures a valid screen rectangle on the screen.
Syntax
Ets_Gui_Screen_Bitmap_Rect_Capture (screen_rect, file_path, options)
| Argument | Type | Description |
|---|---|---|
screen_rect |
EtsT_Rect |
Screen rectangle. |
file_path |
const char * |
Pointer to the file path. |
options |
int |
Specified options (see Details). |
Return Type
EtsT_Compcode
EtsC_Compcode_Success if it returns the valid screen rectangle, file path, and options; otherwise, it returns EtsC_Compcode_Failure.
Header
ets_api_gui.h
Details
This function captures an image of the specified box of the root screen according to the specified image file path and options. Supported options include:
ETSC_GUI_SCREEN_BITMAP_CAPTURE_OPT_NONEETSC_GUI_SCREEN_BITMAP_CAPUTRE_OPT_FILE_GIFETSC_GUI_SCREEN_BITMAP_CAPTURE_OPT_FILE_TIFFETSC_GUI_SCREEN_BITMAP_CAPTURE_OPT_FILE_PNGETSC_GUI_SCREEN_BITMAP_CAPTURE_OPT_NO_BORDER