Re: set grayscale Gtk2::Gdk::Pixbuf

On Jul 18, 2005, at 7:09 AM, Jens Luedicke wrote:

I have a Gtk2::Gdk::Pixbuf and want to set the colors to grayscale.
Is that possible?

GdkPixbuf currently supports only RGB. pixbuf.html#GdkColorspace

So far, that has been the case for its entire existence.

You can, of course, get a grayscale effect simply by replicating the gray data into all three channels.

"it's hard to be eventful when you have this much style."
   - me, rationalizing yet another night of sitting at home.

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