Ets_Dbox_Bitmap_Capture()
Note: Requires OPNET Development Kit
Abstract
Captures a dialog box to an image file.
Syntax
Ets_Dbox_Bitmap_Capture (dbox_ptr, file_path, options)
| Argument | Type | Description |
|---|---|---|
dbox_ptr |
EtsT_Dbox * |
Dialog box to be captured. |
file_path |
const char * |
Path and name of file in which to store the captured image. |
options |
int |
Capture options; OR'ed combination of the bitmap capture options given in Table 12 Dialog Box Sub-Package Symbolic Constants. |
Return Type
EtsT_Compcode
EtsC_Compcode_Success if the capture occurs successfully; EtsC_Compcode_Failure otherwise (for example, if file_path is not valid)
Header
ets_api_gui.h
Details
This function captures an image of the specified dialog box without user interaction. The options argument lets you specify that the image be captured:
- In GIF, TIFF, BMP, or PNG format.
- With or without the dialog box title.
- With or without a black border around the image (border width is specified by the image_capture.border_width preference).