Package com.sun.media.jai.codec

Examples of com.sun.media.jai.codec.FileCacheSeekableStream


            /*
             * BufferedInputStream inputStream = this.m_imageReader.getInputStream();
             * inputStream.reset();
             */
            com.sun.media.jai.codec.FileCacheSeekableStream seekableInput =
                new FileCacheSeekableStream(inputStream);
            RenderedOp imageOp = JAI.create("stream", seekableInput);

            this.m_height = imageOp.getHeight();
            this.m_width = imageOp.getWidth();

View Full Code Here


                // We use a FileCacheSeekableStream here because
                // we need to have a stream that can go backwards.
                // If we are running under the windows installer, Web Start
                // or any other jar based installation, we need to be
                // able to handle images in jar files.
                seekableStream = new FileCacheSeekableStream(inputStream);
            } catch (IOException ex) {
                throw new IllegalActionException(this, ex,
                        "Unable to load file '" + _fileURL + "'");
            }
View Full Code Here

            /*
             * BufferedInputStream inputStream = this.m_imageReader.getInputStream();
             * inputStream.reset();
             */
            com.sun.media.jai.codec.FileCacheSeekableStream seekableInput =
                new FileCacheSeekableStream(inputStream);

            com.sun.media.jai.codec.TIFFDirectory ifd = new com.sun.media.jai.codec.TIFFDirectory(seekableInput, 0);
            com.sun.media.jai.codec.TIFFField fld = null;

            this.m_height = (int)ifd.getFieldAsLong(0x101);
View Full Code Here

            /*
             * BufferedInputStream inputStream = this.m_imageReader.getInputStream();
             * inputStream.reset();
             */
            com.sun.media.jai.codec.FileCacheSeekableStream seekableInput =
                new FileCacheSeekableStream(inputStream);
            RenderedOp imageOp = JAI.create("stream", seekableInput);

            this.m_height = imageOp.getHeight();
            this.m_width = imageOp.getWidth();

View Full Code Here

      InputStream inputStream = this.m_href.openStream();
/*
      BufferedInputStream inputStream = this.m_imageReader.getInputStream();
      inputStream.reset();
*/
      com.sun.media.jai.codec.FileCacheSeekableStream seekableInput = new FileCacheSeekableStream(inputStream);
      RenderedOp imageOp = JAI.create("stream", seekableInput);

      this.m_height = imageOp.getHeight();
      this.m_width = imageOp.getWidth();

View Full Code Here

     */
    protected void loadImage() {
        com.sun.media.jai.codec.FileCacheSeekableStream seekableInput = null;
        RenderedOp imageOp = null;
        try {
            seekableInput = new FileCacheSeekableStream(inputStream);
            imageOp = JAI.create("stream", seekableInput);

            this.height = imageOp.getHeight();
            this.width = imageOp.getWidth();

View Full Code Here

     */
    protected void loadImage() {
        com.sun.media.jai.codec.FileCacheSeekableStream seekableInput = null;
        RenderedOp imageOp = null;
        try {
            seekableInput = new FileCacheSeekableStream(inputStream);
            imageOp = JAI.create("stream", seekableInput);

            this.height = imageOp.getHeight();
            this.width = imageOp.getWidth();

View Full Code Here

     */
    protected void loadImage() {
        com.sun.media.jai.codec.FileCacheSeekableStream seekableInput = null;
        RenderedOp imageOp = null;
        try {
            seekableInput = new FileCacheSeekableStream(inputStream);
            imageOp = JAI.create("stream", seekableInput);

            this.height = imageOp.getHeight();
            this.width = imageOp.getWidth();

View Full Code Here

          float scale = ImageStyleUtils.getScale(originalWidth, originalHeight, style);
          int scaledWidth = (int) Math.round(originalWidth * scale) - (int) ImageStyleUtils.getCropX(Math.round(originalWidth * scale), Math.round(originalHeight * scale), style);
          int scaledHeight = (int) Math.round(originalHeight * scale) - (int) ImageStyleUtils.getCropY(Math.round(originalWidth * scale), Math.round(originalHeight * scale), style);

          // Load the image from the given input stream
          seekableInputStream = new FileCacheSeekableStream(response.getEntity().getContent());
          RenderedOp image = JAI.create("stream", seekableInputStream);
          if (image == null)
            throw new IOException("Error reading image from input stream");

          // Get the original image size
View Full Code Here

    SeekableStream seekableInputStream = null;
    RenderedOp image = null;
    try {
      // Load the image from the given input stream
      seekableInputStream = new FileCacheSeekableStream(is);
      image = JAI.create("stream", seekableInputStream);
      if (image == null)
        throw new IOException("Error reading image from input stream");

      // Get the original image size
View Full Code Here

TOP

Related Classes of com.sun.media.jai.codec.FileCacheSeekableStream

Copyright © 2018 www.massapicom. 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.