Re: Image/Pixbuf: How to set colour "behind" (semi)-transparent data?



Toralf Lund <toralf procaptura com> writes:

> When drawing a pixbuf which has an alpha channel, how do I set the
> background colour? I'm talking about the colour that will "shine
> through" fully or partially where alpha value<255. (Seems like a
> grayish colour is the default; I actually want black instead.)

Hm, I think I've done this with both Hardware Monitor and Monster
Masher (source available from my home page). IIRC, there is a
modify_bg() method inherited from Gtk::Widget.

-- 
Ole Laursen
http://www.cs.aau.dk/~olau/



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