示例#1
0
文件: SGIImage.java 项目: hbruch/jogl
  /** Reads an SGI image from the specified InputStream. */
  public static SGIImage read(final InputStream in) throws IOException {
    final DataInputStream dIn = new DataInputStream(new BufferedInputStream(in));

    final Header header = new Header(dIn);
    final SGIImage res = new SGIImage(header);
    res.decodeImage(dIn);
    return res;
  }