Hi:<br>I tried to draw a tiff image in my JFrame,however I found some strange thing .<br>The core codes I use are shown in the following:<br>--------------<br>        SeekableStream seekableStream = SeekableStream.wrapInputStream(Test.class.getResourceAsStream("Test.tif"), true);<br>
        ParameterBlock pb = new ParameterBlock();<br>        pb.add(seekableStream);<br>        PlanarImage resultImage = JAI.create("tiff", pb);<br>        <br>        JPanel jp=new JPanel();<br>        JFrame jf=new JFrame();<br>
        jf.setSize(1100, 800);<br>        jf.setVisible(true);<br>        Graphics g=jf.getGraphics();<br>        g.setColor(Color.BLUE);<br>        g.drawImage(resultImage.getAsBufferedImage(), 0, 0, null);<br>----------------<br>
However the tiff is  blank in my frame,then I open this tiff with arcgis, it is also a black blank, but I can classify it, then the tiff is colorful.<br><br>Then  export this tiff from the from without the corrdinate information, it can be shown with color in the JFrame.<br>
<br>I wonder why?<br><br>