Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/gf/dev_guide/api/gf_display_snapshot.html on line 1
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/gf/dev_guide/api/gf_display_snapshot.html on line 1
Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/gf/dev_guide/api/gf_display_snapshot.html on line 8
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/gf/dev_guide/api/gf_display_snapshot.html on line 8
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 );
- display
- The handle for the display to make a snapshot from. This is the handle acquired by gf_display_attach().
- output
- The output to capture the snapshot from.
- x1, y1, x2, y2
- The coordinates of the snapshot area. If this rectangle extends beyond the display area, the resulting snapshot is clipped to the intersection of the rectangle and the display area.
- surface
- The destination surface to save the snapshot to.
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_IODISPLAY. |
- GF_ERR_OK
- Success.
- GF_ERR_IODISPLAY
- The hardware doesn't support this functionality.
QNX Graphics Framework
Safety: | |
Interrupt handler |
No |
Signal handler |
No |
Thread |
Yes |
gf_display_attach()
Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/gf/dev_guide/api/gf_display_snapshot.html on line 149
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/gf/dev_guide/api/gf_display_snapshot.html on line 149