how to convert any images format to .pnm format ?
I see list of image format in System.Drawing.Imaging.ImageFormat
, pnm format is not available in there. So, there is any way to convert the image to pnm format in c# ?
Asked
Active
Viewed 822 times
0

RieqyNS13
- 465
- 1
- 5
- 13
-
You have two options really. 1. Go find a library someone has written that you can call from within a C# app to do the conversion. 2. Build your own converter that takes the raw pixel array of an image and turns it into ASCII values. – Logarr Dec 30 '13 at 20:13
-
1The PNM family of formats are very simple and you can do this yourself in maybe 15 lines of code. – Ben Voigt Dec 30 '13 at 22:32
1 Answers
0
Look at this library, it could do what you want: http://www.codeproject.com/Articles/18061/Managed-PNM-Image-Reader-and-Writer

Petro Kostyuk
- 153
- 8