Page 1 of 1

magick++ xpm const char** to png

Posted: 2010-10-25T00:34:32-07:00
by supervhs
Hi,

Today I have xpm’s inside the code. I want to get rid of this.
I was hoping imagemagick could help me. I want to dynamically iterate over the icon data, and save it to database in png format.

Unfortunately imagemagick’s parser expects the whole xpm file content.

Can I in any way get it to accept the xpm data directly, where I give the const char** data pointer containing the defined char array?


I cannot just use the filepath, because I have some domain knowledge available together with the xpm.