gdkPixbufAddAlpha           package:RGtk2           R Documentation

_g_d_k_P_i_x_b_u_f_A_d_d_A_l_p_h_a

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

     Takes an existing pixbuf and adds an alpha channel to it. If the
     existing pixbuf already had an alpha channel, the channel values
     are copied from the original; otherwise, the alpha channel is
     initialized to 255 (full opacity).

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

     gdkPixbufAddAlpha(object, substitute.color, r, g, b)

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

'object': ['GdkPixbuf']  A 'GdkPixbuf'.

'substitute.color': [logical]  Whether to set a color to zero opacity. 
          If this is 'FALSE', then the ('r', 'g', 'b') arguments will
          be ignored.

     'r': [raw]  Red value to substitute.

     'g': [raw]  Green value to substitute.

     'b': [raw]  Blue value to substitute.

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

     If 'substitute.color' is 'TRUE', then the color specified by ('r',
     'g', 'b') will be assigned zero opacity. That is, if you pass
     (255, 255, 255) for the substitute color, all white pixels will
     become fully transparent.

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

     ['GdkPixbuf']  A newly-created pixbuf with a reference count of 1.

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

     Derived by RGtkGen from GTK+ documentation

