Re: XPM image creation
| From: | Tom Rogers | Date: | Fri, 02 Jul 2004 16:42:16 +0000 |
| Subject: | Re: XPM image creation | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-4693@lists.php.net to get a copy of this message | ||
Hi,
Saturday, July 3, 2004, 2:20:08 AM, you wrote:
dmo> Good morning,
dmo> Does anyone have a link to a resource or tutorial about XPM image
dmo> creation. I've been going through Joel De Gan's code
dmo> ( message title: [PHP-GTK] introduction etc.. php-gtk tutorials ) from
dmo> yesterday, but there still seems to be basic stuff that I'm missing, like
dmo> the meaning of the 4th number in the first line of the xpm array, i.e.,
dmo> xpm_array = array(
dmo> "120 /* width */ 100 /* height */ 256 /* number of colors
dmo> */ 2 /* what is this for */",
dmo> " c None",
dmo> ". c #020202",
dmo> "+ c #224A22",
dmo> "@ c #428642",
dmo> "# c #76BA76",
dmo> .....
dmo> ....
dmo> ...
dmo> ..
dmo> .
dmo> ");
dmo> And what application is actually producing the image? php_win.exe ?
dmo> (obviously, I'm on windows).
dmo> I've googled around a bit, but haven't had much luck with good info.
dmo> Thanks Much,
dmo> dave
The 2 is the number of characters/pixel so you can get to 256
colours (I think a space acts as a null)
--
regards,
Tom