Re: Problem with gdk_pixmap_create_from_data()
- From: Sven Neumann <sven gimp org>
- To: "Gordon Durnell" <gdurnell megavolt com>
- Cc: <gtk-list gnome org>
- Subject: Re: Problem with gdk_pixmap_create_from_data()
- Date: 16 Feb 2001 15:07:12 +0100
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]