cairoSurfaceWriteToPng         package:RGtk2         R Documentation

_c_a_i_r_o_S_u_r_f_a_c_e_W_r_i_t_e_T_o_P_n_g

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

     Writes the contents of 'surface' to a new file 'filename' as a PNG
     image.

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

     cairoSurfaceWriteToPng(surface, filename)

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

'surface': ['CairoSurface']  a 'CairoSurface' with pixel contents

'filename': [char]  the name of a file to write to

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

     ['CairoStatus'] 'CAIRO_STATUS_SUCCESS' if the PNG file was written
     successfully. Otherwise, 'CAIRO_STATUS_NO_MEMORY' if memory could
     not be allocated for the operation or
     CAIRO_STATUS_SURFACE_TYPE_MISMATCH if the surface does not have
     pixel contents, or 'CAIRO_STATUS_WRITE_ERROR' if an I/O error
     occurs while attempting to write the file.

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

     Derived by RGtkGen from GTK+ documentation

