Examples of endWriteSequence()


Examples of com.sun.media.imageioimpl.plugins.gif.GIFImageWriter.endWriteSequence()

                    images.add(ri);
                }
            }

            // close writing sequence
            gifWriter.endWriteSequence();

        } catch (IOException e) {
            throw new ServiceException(e);
        } finally {
            try {
View Full Code Here

Examples of javax.imageio.ImageWriter.endWriteSequence()

                        g2d.dispose();
                    }
                }
            }

            imageWriter.endWriteSequence();
        } finally {
            imageWriter.dispose();
        }
    }
}
View Full Code Here

Examples of javax.imageio.ImageWriter.endWriteSequence()

                meta.mergeTree(ImageWrapper.GIF_IMAGE_METADATA_NAME, metadatas[i]);

                IIOImage img = new IIOImage(renderedImg, null, meta);
                writer.writeToSequence(img, param);
            }
            writer.endWriteSequence();

            imageOut.flush();
        } catch (IOException e) {
            throw new SimpleImageException(e);
        } finally {
View Full Code Here

Examples of javax.imageio.ImageWriter.endWriteSequence()

      writer.prepareWriteSequence(null);

      writer.writeToSequence(new IIOImage(image,null,null),iwp);

      writer.endWriteSequence();
      ios.close();     

      BufferedImage readimage  = ImageIO.read(file);
      Graphics2D    g         = (Graphics2D)readimage.getGraphics();
      g.drawString("Hello World!",20,40);
View Full Code Here

Examples of javax.imageio.ImageWriter.endWriteSequence()

      writer.prepareWriteSequence(null);

      writer.writeToSequence(new IIOImage(readimage,null,null),iwp);
      writer.writeToSequence(new IIOImage(image,null,null),iwp);

      writer.endWriteSequence();
      ios.close();     
    }catch(Exception e){
      e.printStackTrace();
    }   
  }
View Full Code Here

Examples of javax.imageio.ImageWriter.endWriteSequence()

            writer.prepareWriteSequence(null);

            for (int i = 0; i < animation.getNumFrames(); ++i) {
                writer.writeToSequence(new IIOImage(animation.getFrame(i), null, metaData), param);
            }
            writer.endWriteSequence();
           
            ios.close();
            os.close();
            ios = null;
        } catch (IIOInvalidTreeException e) {
View Full Code Here

Examples of javax.imageio.ImageWriter.endWriteSequence()

        ImageWriteParam param = writer.getDefaultWriteParam();
        writer.setOutput(ios);
        writer.prepareWriteSequence(null);
        writer.writeToSequence(new IIOImage(frame1, null, null), param);
        writer.writeToSequence(new IIOImage(frame2, null, null), param);
        writer.endWriteSequence();
        writer.reset();
        writer.dispose();

        ios.flush();
        ios.close();
View Full Code Here

Examples of uk.co.mmscomputing.imageio.pdf.PDFImageWriter.endWriteSequence()

   
    for (int i=0; i < images.size(); i++) {
      writer.writeToSequence(images.get(i));
    }
   
    writer.endWriteSequence();
  }
 
  /**
   * TIFF Writer
   */
 
View Full Code Here

Examples of uk.co.mmscomputing.imageio.tiff.TIFFImageWriter.endWriteSequence()

   
    for (int i=0; i < images.size(); i++) {
      writer.writeToSequence(images.get(i), null);
    }
   
    writer.endWriteSequence();
  }
}
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.