Convert between PGM & PPM

This is a discussion on Convert between PGM & PPM within the C++ Programming forums, part of the General Programming Boards category; Hi, Anybody knows how to read a gray-scale image format .PGM (Portable Gray Map) file and convert into a color ...

  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
    32,823
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

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, 06:10 AM
  2. Another syntax error
    By caldeira in forum C Programming
    Replies: 31
    Last Post: 09-05-2008, 02:01 AM
  3. Replies: 3
    Last Post: 08-21-2006, 07: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, 11:26 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21