Re: XPM image creation

From: Date: Fri, 02 Jul 2004 16:29:22 +0000
Subject: Re: XPM image creation
References: 1  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-4692@lists.php.net to get a copy of this message
I use a program called "convert". Its part of imagemagick for linux. http://www.imagemagick.org/ Its really easy to use, just make a jpeg image and type "convert image.jpg image.xpm" and it creates a nice little xpm file. -Scott dpgirago@mdanderson.org wrote:
Good morning, Does anyone have a link to a resource or tutorial about XPM image creation. I've been going through Joel De Gan's code ( message title: [PHP-GTK] introduction etc.. php-gtk tutorials ) from yesterday, but there still seems to be basic stuff that I'm missing, like the meaning of the 4th number in the first line of the xpm array, i.e., xpm_array = array(
"120 /* width */        100 /* height */         256 /* number of colors */      2  /* what is this for */",
"       c  None",
".      c  #020202",
"+      c  #224A22",
"@      c  #428642",
"#      c  #76BA76",
..... .... ... .. . ");
And what application is actually producing the image?    php_win.exe ? (obviously, I'm on windows). 
I've googled around a bit, but haven't had much luck with good info. Thanks Much, dave


« previous php.gtk.general (#4692) next »