Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I create a pixmap based on a .png file?

I have some .png icons I want to use for window buttons in a custom theme I want to create For fluxbox. My operating system is Arch Linux. But, fluxbox works with pixmaps.

Question: Is it possible to create pixmaps based on .png format files?

like image 703
gabriel Avatar asked Mar 28 '15 08:03

gabriel


1 Answers

You can use the program convert from ImageMagick:

xiawi@here:~/Images$ convert lena.png lena.xpm
xiawi@here:~/Images$ file lena.xpm 
lena.xpm: X pixmap image, ASCII text, with very long lines
like image 102
xiawi Avatar answered Nov 15 '22 11:11

xiawi