reading pgm files

Discussion in 'Java' started by harryos, Jul 18, 2008.

  1. harryos

    harryos Guest

    hi
    i wanted to read some pgm files and get the pixel data.i believe the
    javax.imageio doesn't support reading pgm files.So i downloaded
    jai1.1 and am trying to read a .pgm file.

    I couldn't figure out how to use the methods in javax.media.jai. Say i
    have a pgm file at F:\images\myimage.pgm .How do i create a
    BufferedImage out of it? can someone give me a code snippet to show
    this?
    thanks
    harry
     
    harryos, Jul 18, 2008
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    9
    Views:
    484
    Harish
    Jan 12, 2005
  2. sriraj
    Replies:
    4
    Views:
    691
    Roedy Green
    Oct 18, 2005
  3. Read pixels from a PGM/PPM Image

    , May 23, 2005, in forum: C Programming
    Replies:
    2
    Views:
    1,716
    Malcolm
    May 24, 2005
  4. Anjana

    pgm without std library functions

    Anjana, Apr 7, 2006, in forum: C Programming
    Replies:
    18
    Views:
    507
    CBFalconer
    Apr 11, 2006
  5. vaneric

    reading pgm format

    vaneric, Jul 20, 2008, in forum: Java
    Replies:
    3
    Views:
    1,690
    Roedy Green
    Jul 21, 2008
Loading...

Share This Page