gdkPixbufSaveToBuffer         package:RGtk2         R Documentation

_g_d_k_P_i_x_b_u_f_S_a_v_e_T_o_B_u_f_f_e_r

_D_e_s_c_r_i_p_t_i_o_n:

     Saves pixbuf to a new buffer in format 'type', which is currently
     "jpeg", "png", "tiff", "ico" or "bmp".  This is a convenience
     function that uses 'gdkPixbufSaveToCallback' to do the real work.
     Note that the buffer  is not and may contain embedded  nuls. If
     'error' is set, 'FALSE' will be returned and 'string' will be set
     to 'NULL'. Possible errors include those in the 'GDK_PIXBUF_ERROR'
     domain.

_U_s_a_g_e:

     gdkPixbufSaveToBuffer(object, type, ..., .errwarn = TRUE)

_A_r_g_u_m_e_n_t_s:

'object': ['GdkPixbuf']  a 'GdkPixbuf'.

  'type': [char]  name of file format.

   '...': list of key-value save options

.errwarn: Whether to issue a warning on error or fail silently

_D_e_t_a_i_l_s:

     See 'gdkPixbufSave' for more details.  

     Since  2.4

_V_a_l_u_e:

     A list containing the following elements: 

  retval: [logical]  whether an error was set

'buffer': [character]  location to receive a pointer to the new buffer.

'buffer.size': [numeric]  location to receive the size of the new
          buffer.

 'error': ['GError']  return location for error, or 'NULL'

_A_u_t_h_o_r(_s):

     Derived by RGtkGen from GTK+ documentation

