Examples of encodeImage()


Examples of org.pentaho.reporting.libraries.base.encoder.ImageEncoder.encodeImage()

      final ContentItem contentItem =
          contentLocation.createItem(nameGenerator.generateName(null, mimeType));
      final BufferedImage image = interceptor.getImage();
      final ImageEncoder imageEncoder = ImageEncoderRegistry.getInstance().createEncoder(mimeType);
      final OutputStream outputStream = contentItem.getOutputStream();
      imageEncoder.encodeImage(image, outputStream, quality, alphaChannel);
      outputStream.close();
    }
    catch (Throwable e)
    {
      setError(e);
View Full Code Here

Examples of org.pentaho.reporting.libraries.base.encoder.ImageEncoder.encodeImage()

    if (imageEncoder == null)
    {
      throw new UnsupportedEncoderException("The encoder for mime-type '" + mimeType + "' is not available");
    }

    imageEncoder.encodeImage(image, outputStream, quality, alpha);
  }

  public static Image scaleImage(final Image img,
                                 final int targetWidth,
                                 final int targetHeight,
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.