Re: set grayscale Gtk2::Gdk::Pixbuf
- From: muppet <scott asofyet org>
- To: Jens Luedicke <jens luedicke gmail com>
- Cc: Gtk-Perl-List <gtk-perl-list gnome org>
- Subject: Re: set grayscale Gtk2::Gdk::Pixbuf
- Date: Mon, 18 Jul 2005 07:51:21 -0400
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.
http://developer.gnome.org/doc/API/2.0/gdk-pixbuf/gdk-pixbuf-gdk-
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]