Re: [gtk-list] colordepth of pixmaps
- From: Havoc Pennington <hp redhat com>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] colordepth of pixmaps
- Date: Fri, 13 Aug 1999 18:58:26 -0400 (EDT)
On Fri, 13 Aug 1999, P Jean dit Bailleul wrote:
>
> When i want to create pixmaps (GDK_Pixmap_New(nil, FWidth, FHeight, 24);)
> with a color depth of 24 bits while my screen use only 16 bits i get an
> error stating that i can't use a higher depth than the screen one. Is it a
> limitation of the GDK or is it due to the way i'm creating the pixmap?
You can only create pixmaps that your X display supports, so a 16-bit
display won't support 24-bit pixmaps.
Perhaps you are trying to use pixmaps as a client-side data structure
instead of as a way to display your image data; you might consider using
GdkRGB (gdk/gdkrgb.h) to store your 24-bit data and use GdkPixmap only to
render the data on the screen.
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]