Guidance
指路人
g.yi.org
Guidance Forums / wxWidgets (wxWindows) in C++ / XPM Question

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. XPM Question
#2645
Posted by: mooncake 2003-09-19 07:46:34
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~
Message2. 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

Message3. Re: XPM Question
#2650
Posted by: mooncake 2003-09-20 07:39:26
i got it, thank you
Meow~
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
¥1,280.00 ·
 
 
¥810.00 ·
 
 
¥1,580.00 ·
 
 
¥487.00 ·
 
 
¥490.00 ·
 
 
¥1,480.00 ·
© Sun 2024-11-24  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0