tags:

views:

39

answers:

3

Hello, I am working on a code and we are getting PPM as the image format, this needs to be converted to PNG and then saved. I was looking at some API's to achieve this conversion from PPM to PNG. Can this be done using GDI+, as this would become native?

If that is not possible then I think freeimage or pnglib can accomplish that, however I would prefer to use native gdi+ if possible.

A: 

You can use ImageMagick library :

http://www.imagemagick.org/script/index.php

but it does lots of other things.

VJo
A: 

Well GDI+ does not natively support the PPM format. So you will need a library whatever you do.

Goz
A: 

Quick and dirty: download Imagemagick and use it from CLI:

convert xx.ppm xx.png

or use Imagemagick's dll API

joni