Re: bits_per_sample in pixbuf functions
- From: Havoc Pennington <hp redhat com>
- To: "Lewin A.R.W. Edwards" <larwe larwe com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: bits_per_sample in pixbuf functions
- Date: 16 Dec 2001 12:22:05 -0500
"Lewin A.R.W. Edwards" <larwe larwe com> writes:
I.e., if I had an internal RGB buffer (8:8:8, i.e. 24bpp) would I use
24 or 8 as the bits_per_sample field?
8.
And a more complex case: if I had a 16bpp buffer, would gdk
automatically assume that it's 5:6:5?
At the top of gdk_pixbuf_new:
g_return_val_if_fail (bits_per_sample == 8, NULL);
The real utility of GdkPixbuf (vs. GdkImage) is that it's in a fixed
format. The API is "extensible" to allow new formats but at the moment
only 8-bits-per-sample RGB/RGBA are supported, and I haven't seen any
interest in actually adding other stuff.
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]