Re: Paint window with color gradient



Surya Kiran Gullapalli <skg fluent co in> writes:

> I've a Gdk::Window, and i'd like to paint a rectangle in the window.
> This is very easy, i can use Gdk::Window::draw_rectangle() function.
> But what if i want to paint the window, with a color and with horizontal
> or vertical gradient.

I think you have to code that yourself. Either by generating an image
and displaying that or with some kind of on_expose magic. A gradient
is simple a set of lines next to each other with slightly different
colors.

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



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