Re: drawing a png, honoring transparency



Carl Nygard wrote:
Gdk::Pixbuf::render_to_drawable_alpha(...) has a parameter that lets you
set the threshold for the alpha.  Basically your only option is on/off,
no alpha blending-ish rendering is supported ATM.

Basically render_to_drawable_alpha uses the threshold and the alpha
channel to create the GC clipping mask, then renders using that, I
believe.

this call just doesn't seem to work. also, the documentation says that the alpha related values are simply ignored:


http://www.gtkmm.org/docs/gtkmm-2.4/docs/reference/html/classGdk_1_1Pixbuf.html#a29


	alpha_mode 	Ignored. Present for backwards compatibility.
	alpha_threshold 	Ignored. Present for backwards compatibility.


and that the function itself is deprecated:


Deprecated: This function is obsolete. Use gdk_draw_pixbuf() instead.


:((



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]