CairoWriteFunc             package:RGtk2             R Documentation

_C_a_i_r_o_W_r_i_t_e_F_u_n_c

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

     A callback used by cairo for outputting graphics data in formats
     like svg and png.

_S_i_g_n_a_t_u_r_e:


      'CairoWriteFunc(data, length, user_data)': The type of function
          which is called when a backend needs to write data to an
          output stream. It is passed the closure which was specified
          by the user at the time the write function was registered,
          the data to write and the length of the data in bytes. The
          write function should return 'CAIRO_STATUS_SUCCESS' if all
          the data was successfully written, 'CAIRO_STATUS_WRITE_ERROR'
          otherwise.

          '_d_a_t_a' [raw] the buffer containing the data to write

          '_l_e_n_g_t_h' [numeric] the amount of data to write

          '_u_s_e_r__d_a_t_a' [R object] user-supplied data


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

     Michael Lawrence

_R_e_f_e_r_e_n_c_e_s:

     <URL: http://www.cairographics.org/manual/cairo-PNG-Support.html>

