Re: Problem with gdk_pixmap_create_from_data()
- From: "Gordon Durnell" <gdurnell megavolt com>
- To: "Sven Neumann" <sven gimp org>
- Cc: <gtk-list gnome org>
- Subject: Re: Problem with gdk_pixmap_create_from_data()
- Date: Fri, 16 Feb 2001 08:34:50 -0600
Thanks for the pointer. That was A problem, but apparently not THE problem.
I changed to a 3-byte color depth and still get the same error. I suspect
it may be the bg and fg colors that I'm using.
----- Original Message -----
From: "Sven Neumann" <sven gimp org>
To: "Gordon Durnell" <gdurnell megavolt com>
Cc: <gtk-list gnome org>
Sent: Friday, February 16, 2001 08:07
Subject: Re: Problem with gdk_pixmap_create_from_data()
> Hi,
>
> "Gordon Durnell" <gdurnell megavolt com> writes:
>
> > I am trying to covert from using gdk_pixmap_create_from_xdm() so that I
> > don't have to use an external pixmap file (i.e. everything in one
> > executable). I opened the .XPM file in GIMP and saved it as a .C file
> > structure (logo.c).
> [snip]
> > gchar pixel_data[128 * 128 * 4];
> > } logo = {
> > 128, 128, 4,
> [snip]
> > When run (with --sync option), I get:
> >
> > Gdk-ERROR **: BadValue (integer parameter out of range for operation)
> > serial 67 error_code 2 require_code 53 minor_code 0
>
> GDK pixmaps do not handle alpha channels, so bpp = 4 will not work.
> Try flattening the image in Gimp before you save.
>
>
> Salut, Sven
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]