Re: GdkBitmap from black & white .png file
- From: Richard Shann <richard shann virgin net>
- To: gtk-app-devel-list gnome org
- Subject: Re: GdkBitmap from black & white .png file
- Date: Thu, 05 Feb 2009 16:49:33 +0000
On Thu, 2009-02-05 at 16:20 +0000, gtk-app-devel-list-request gnome org
wrote:
There are functions to convert a PNG with transparency (alpha component)
to a GdkBitmap according to a threshold. See
gdk_pixbuf_render_threshold_alpha()
http://library.gnome.org/devel/gdk/stable/gdk-Pixbufs.html#gdk-pixbuf-render-threshold-alpha
Thank you for this - I have now taken the this approach - adding an
alpha channel to a pixbuf created from the .png and then going to xbm
format and finally to the GdkBitmap.
Richard Shann
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]