Package javax.imageio.stream

Examples of javax.imageio.stream.ImageOutputStream.writeInt()


    ImageOutputStream out=(ImageOutputStream)getOutput();
    out.setByteOrder(ByteOrder.LITTLE_ENDIAN);
    out.writeShort(0x00004949);               // 0: II = intel = little endian
    out.writeShort(42);                       // 2: version, magic value
    ifdptr=out.getStreamPosition();           // save position (4): write here later the offset to first ifd (ifd linked list)
    out.writeInt(0);                          // 4: offset first Image File Directory
                                              // 8: header size
  }

  public void writeToSequence(IIOImage img,ImageWriteParam param)throws IOException{
    if(!(img.getRenderedImage() instanceof BufferedImage)){
View Full Code Here


                    if (pos + 4 > length) {
                        ios.reset();
                        ios.mark();
                        pos = 0;
                    }
                    ios.writeInt(0);
                    pos += 4;
                } while (--numReps >= 0);
            } catch (IOException e) {
                e.printStackTrace();
            } finally {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.