|
From: vaneric on 20 Jul 2008 03:56 Hi, is it possible to read .pgm image format using java?.I tried ImageIO.read("my.pgm") but this failed.I was told that JAI api can read pgm format.Can anyone tell me how i can obtain a BufferedImage out of it? RenderedImage rendimg=JAI.create("fileload","my.pgm"); but then how do i obtain a BufferedImage from this? thanks in advance, eric
From: Roedy Green on 21 Jul 2008 17:11 On Sun, 20 Jul 2008 00:56:57 -0700 (PDT), vaneric <vaneric001(a)gmail.com> wrote, quoted or indirectly quoted someone who said : >is it possible to read .pgm image format using java? If you can't do it, see this description of the format. http://netpbm.sourceforge.net/doc/pgm.html Portable Grey Map files are reputedly very simple. You could read it in binary and feed it to Java at bit at a time. -- Roedy Green Canadian Mind Products The Java Glossary http://mindprod.com
|
Pages: 1 Prev: C# programmers need a little help with Java and NetBeans references. Next: reading pgm format |