guiGrabScreenshot (Function) |
Top Previous Next |
This function grabs a screenshot of the display and saves it to a file. The screenshot is saved as a gzipped portable graymap format file(pgm), which can then be converted to more common formats on the PC. Some image manipulating programs such as GIMP(https://www.gimp.org/) supports gzipped pgm files directly, while others requires it to be extracted first, which can be done e.g. with 7zip(http://www.7-zip.org/). To convert from pgm to more common image formats, it is possible to use e.g. http://www.xnview.com/en/xnconvert/.
This function can also be called while using the display API. The screenshots can be useful for e.g. documentation.
Note: Menus can not be captured with this function.
Input: filename : STRING The filename to save the image to. format : SINT default 0 The format to use when saving the image. Currently only gzipped portable graymap (format:=0) is supported.
Returns: INT
Declaration: FUNCTION guiGrabScreenshot : INT;
Example: INCLUDE rtcu.inc |