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_NOSUPPORT. | 
 
- GF_ERR_OK
    
 
- Success.
    
 
- GF_ERR_NOSUPPORT
    
 
- The hardware doesn't support this functionality.
 
QNX Graphics Framework
| Safety: |  | 
| Interrupt handler | 
    No | 
| Signal handler | 
    No | 
| Thread | 
    Yes | 
gf_display_attach()