Thread: Convert between PGM & PPM

  1. #1
    Registered User
    Join Date
    May 2007

    Question Convert between PGM & PPM


    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

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    The edge of the known universe
    Visit 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.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. how convert c pgm to executable file
    By arul in forum C Programming
    Replies: 3
    Last Post: 10-12-2008, 05:10 AM
  2. Another syntax error
    By caldeira in forum C Programming
    Replies: 31
    Last Post: 09-05-2008, 01:01 AM
  3. Replies: 3
    Last Post: 08-21-2006, 06:42 AM
  4. Convert Char to Int Function
    By drdroid in forum C++ Programming
    Replies: 9
    Last Post: 02-19-2003, 12:53 PM
  5. please help ... to convert date to string
    By mel in forum C Programming
    Replies: 1
    Last Post: 06-12-2002, 10:26 AM