Code: Select all
convert test.xpm -modulate 100,100,150 test_out.xpm
Code: Select all
/* XPM */
static char *test[] = {
"16 16 4 1",
" c None",
". c #729FCF",
"+ c #6194CB",
"@ c #3465A4",
"++++++++++++++++",
"++++++++++++++++",
"++++++++++++++++",
"++++++++++++++++",
"................",
"................",
"................",
"................",
"................",
"................",
"@@@@@@@@@@@@@@@@",
"@@@@@@@@@@@@@@@@",
"@@@@@@@@@@@@@@@@",
"@@@@@@@@@@@@@@@@",
"@@@@@@@@@@@@@@@@",
" "
};
the colors remain the same.
Code: Select all
/* XPM */
static char *test[] = {
"16 16 3 1",
". c #729FCF",
"+ c #6194CB",
"@ c #3465A4",
"++++++++++++++++",
"++++++++++++++++",
"++++++++++++++++",
"++++++++++++++++",
"................",
"................",
"................",
"................",
"................",
"................",
"@@@@@@@@@@@@@@@@",
"@@@@@@@@@@@@@@@@",
"@@@@@@@@@@@@@@@@",
"@@@@@@@@@@@@@@@@",
"@@@@@@@@@@@@@@@@",
"@@@@@@@@@@@@@@@@"
};
Code: Select all
/* XPM */
static char *test_out[] = {
/* columns rows colors chars-per-pixel */
"16 16 3 1 ",
" c #72729F9FCFCF",
". c #61619494CBCB",
"X c #34346565A4A4",
/* pixels */
"................",
"................",
"................",
"................",
" ",
" ",
" ",
" ",
" ",
" ",
"XXXXXXXXXXXXXXXX",
"XXXXXXXXXXXXXXXX",
"XXXXXXXXXXXXXXXX",
"XXXXXXXXXXXXXXXX",
"XXXXXXXXXXXXXXXX",
"XXXXXXXXXXXXXXXX"
};
It’s a bug?
Thanks for your answer,
Sorry for my poor English