Save the contents of a display to a surface
#include <gf/gf.h> int gf_display_snapshot( gf_display_t display, int output, int x1, int y1, int x2, int y2, gf_surface_t surface );
gf
This function creates a snapshot of a defined area on a specified output for a display. All visible layers are captured and flattened into a single layer, and the resulting snapshot is saved to a surface you pass to the function.
Only the Fujitsu Carmine hardware supports this function. If it is called on other hardware, it will fail and return GF_ERR_NOSUPPORT. |
Threads should not call this function between calls to gf_draw_begin() and gf_draw_end(), or a deadlock will occur. |
QNX Graphics Framework
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | Yes |