cairoImageSurfaceCreateFromPng     package:RGtk2     R Documentation

_c_a_i_r_o_I_m_a_g_e_S_u_r_f_a_c_e_C_r_e_a_t_e_F_r_o_m_P_n_g

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

     Creates a new image surface and initializes the contents to the
     given PNG file.

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

     cairoImageSurfaceCreateFromPng(filename)

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

'filename': [char]  name of PNG file to load

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

     ['CairoSurface']  a new 'CairoSurface' initialized with the
     contents of the PNG file, or a "nil" surface if any error
     occurred. A nil surface can be checked for with
     cairo_surface_status(surface) which may return one of the
     following values:

     CAIRO_STATUS_NO_MEMORY CAIRO_STATUS_FILE_NOT_FOUND
     CAIRO_STATUS_READ_ERROR

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

     Derived by RGtkGen from GTK+ documentation

