Thread: Convert between PGM & PPM

  1. #1
    Registered User
    Join Date
    May 2007
    Posts
    12

    Question Convert between PGM & PPM

    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

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

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