Hi,
Anybody knows how to read a gray-scale image format .PGM (Portable Gray Map) file and convert into a color image format .PPM (Portable Pixel Map)?
Ken JS
Hi,
Anybody knows how to read a gray-scale image format .PGM (Portable Gray Map) file and convert into a color image format .PPM (Portable Pixel Map)?
Ken JS
Visit http://www.wotsit.org/ and read up on the two file formats.
IIRC, they're both just text files which begin with some basic information like the width and height.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.