Package com.sun.media.jai.codec

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


          if (future.isDone()) {
            try {
              ImageResult result;
              result = future.get();
              // create a rendered image
              RenderedImage image = JAI.create("stream", new ByteArraySeekableStream(result.getImage()));
              // convert to common direct colormodel (some images have their own indexed color model)
              RenderedImage colored = toDirectColorModel(image);

              // translate to the correct position in the tile grid
              double xOffset = result.getRasterImage().getCode().getX() * tileWidth - pixelBounds.getX();
View Full Code Here


            if (future.isDone()) {
              try {
                ImageResult result;
                result = future.get();
                // create a rendered image
                RenderedImage image = JAI.create("stream", new ByteArraySeekableStream(result
                    .getImage()));
                // convert to common direct colormodel (some images have their own indexed color model)
                RenderedImage colored = toDirectColorModel(image);

                // translate to the correct position in the tile grid
View Full Code Here

            ss.changeDirectoryToRoot();

            byte[] s = ss.getStreamAsBytes("SummaryInformation");

            PropertySet ps = new PropertySet(new ByteArraySeekableStream(s));

            // Get the thumbnail property
            byte[] thumb = ps.getBlob(17);

            // Emit it as a BMP file
View Full Code Here

/*     */
/* 628 */       ss.changeDirectoryToRoot();
/*     */
/* 630 */       byte[] s = ss.getStreamAsBytes("\005SummaryInformation");
/*     */
/* 632 */       PropertySet ps = new PropertySet(new ByteArraySeekableStream(s));
/*     */
/* 635 */       byte[] thumb = ps.getBlob(17);
/*     */
/* 638 */       System.out.print("BM");
/* 639 */       int fs = thumb.length - 8 + 14 + 40;
View Full Code Here

        if (LOGGER.isLoggable(Level.WARNING)) {
          LOGGER
              .warning("Image IO cannot read from ByteInputStream,use less efficient jai methods");
        }
        li.setCanImageIOReadFromInputStream(false);
        SeekableStream stream = new ByteArraySeekableStream(tileBytes);
        String decoderName = null;

        for (String dn : ImageCodec.getDecoderNames(stream)) {
          decoderName = dn;
          break;
View Full Code Here

   * @return
   * @throws IOException
   */
  private BufferedImage readImage2(byte[] imageBytes) throws IOException {

    SeekableStream stream = new ByteArraySeekableStream(imageBytes);
    String decoderName = null;

    for (String dn : ImageCodec.getDecoderNames(stream)) {
      decoderName = dn;
      break;
View Full Code Here

    }
  }

  private BufferedImage readImage2(byte[] imageBytes) throws IOException {

    SeekableStream stream = new ByteArraySeekableStream(imageBytes);
    String decoderName = null;

    for (String dn : ImageCodec.getDecoderNames(stream)) {
      decoderName = dn;
      break;
View Full Code Here

            LOGGER.fine("Starting to Retrieve GeoRaster Image");

            byte[] bytes = getImageBytesUsingSDOExport(envelope, level, conn);

            // start creating a java Buffered image from the blob
            SeekableStream stream = new ByteArraySeekableStream(bytes);

            // find an ImageDecorder
            String decoderName = null;
            for (String dn : ImageCodec.getDecoderNames(stream)) {
                decoderName = dn;
View Full Code Here

TOP

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

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.