| Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next 1 | 1. XPM Question #2645 | Could somebody tell me how to create xpm file? Because i want to create some icon.
i got doing research, but, seems like available in Linux only, whose know where i can found the XPM tools for windows?
Thank you.Meow~ | 2. Re: XPM Question #2646 Posted by: HeReSY 2003-09-19 16:02:45 | You can create XPM Files under Linux with Gimp for Windows.
You can write your own xpm file with every editor which can save ASCII Text.
First you give your xpm file a name
static const char *folderClosed[] = {
/* now add the width and the height of the file, how many colors you need for your bitmap and how many chars_per_pixel*/ "16 16 6 1", /* then you must define your colours*/ " s None c None", ". c #000000", "+ c #c0c0c0", "@ c #808080", "# c #ffff00", "$ c #ffffff", /* and ant least you have to write your bitmap.*/ " ", " @@@@@ ", " @#+#+#@ ", " @#+#+#+#@@@@@@ ", " @$$$$$$$$$$$$@.", " @$#+#+#+#+#+#@.", " @$+#+#+#+#+#+@.", " @$#+#+#+#+#+#@.", " @$+#+#+#+#+#+@.", " @$#+#+#+#+#+#@.", " @$+#+#+#+#+#+@.", " @$#+#+#+#+#+#@.", " @@@@@@@@@@@@@@.", " ..............", " ", " "}; If you make it with gimp, you have to open the file in an editor and change static char* ... to static const char* ...
HeReSY
| 3. Re: XPM Question #2650 | i got it, thank you Meow~ | Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next 1 |
|
|