Re: alpha channel in GdkPixbuf
- From: Owen Taylor <otaylor redhat com>
- To: Ron Steinke <rsteinke w-link net>
- Cc: gtk-list gnome org
- Subject: Re: alpha channel in GdkPixbuf
- Date: 14 Jun 2001 17:35:21 -0400
Ron Steinke <rsteinke w-link net> writes:
> Is there any way to extract the alpha channel information from
> a GdkPixbuf (for example, writing it to an array or a grayscale
> pixmap)?
The bytes of a GdkPixbuf are available as:
guchar *gdk_pixbuf_get_pixels (const GdkPixbuf *pixbuf);
The alpha value at x,y is:
pixels[rowstride * y + x * 4 + 3];
Regards,
Owen
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]