Re: 3 minor important questions...
- From: Sven Neumann <sven gimp org>
- To: RevX gmx at
- Cc: gtk-list gnome org
- Subject: Re: 3 minor important questions...
- Date: 24 Sep 2001 15:22:52 +0200
Hi,
RevX gmx at writes:
> 2. Some XPM files have 6 byte color codes instead of the (normal)
> 3 byte (#RRGGBB), what do those 6 byte color codes represent/mean?
GDK uses 2 bytes per color channel internally. The GdkColor struct is
defined as
struct _GdkColor
{
gulong pixel;
gushort red;
gushort green;
gushort blue;
};
where red, green and blue represent values in the range of 0-65535.
gdk_color_parse() hides these details from you and can parse 3 byte
as well as 6 byte color notations (and a few other formats).
> 3. Does anyone know any Windows(!) programs (freeware/shareware
> preferred) that allow to convert BMP or GIF of JPG to XPM files?
The GIMP ?! http://www.gimp.org/win32/
Salut, Sven
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]