5

What is the best way to read a PPM (P6) image file in C# and save it as a Bitmap?

codelove
  • 1,396
  • 3
  • 17
  • 35

1 Answers1

5

I would use the source code provided here:

http://www.codeproject.com/KB/graphics/PixelMapAndImageViewer.aspx

It looks like the PixelMap class (PPM is a "Portable Pixel Map") to open a PPM and save as a Bitmap.

apiguy
  • 5,282
  • 1
  • 23
  • 24