K
Kim Schulz
hi
anyone that know some free code to convert ppm to jpeg in c#?
Best regards
Kim Schulz
anyone that know some free code to convert ppm to jpeg in c#?
Best regards
Kim Schulz
Kim,
I don't think that GDI supports the PPM format. If you have a
library
that supports it, and exposes a GDI device context handle to the
image, then you should be able to create a new Bitmap instance, and
then get the device context for that, calling BitBlt (through the
P/Invoke layer), to copy the PPM image to the Bitmap).
Once you have that, you can then call Save on the Bitmap,
indicating
that you want it to be saved in JPG format.
Hope this helps.