Package de.lmu.ifi.dbs.elki.visualization.batikutil

Examples of de.lmu.ifi.dbs.elki.visualization.batikutil.ThumbnailTranscoder


   * @param width Width of thumbnail
   * @param height Height of thumbnail
   * @return Buffered image
   */
  public BufferedImage makeAWTImage(int width, int height) throws TranscoderException {
    ThumbnailTranscoder t = new ThumbnailTranscoder();
    t.addTranscodingHint(PNGTranscoder.KEY_WIDTH, new Float(width));
    t.addTranscodingHint(PNGTranscoder.KEY_HEIGHT, new Float(height));
    // Don't clone. Assume this is used safely.
    TranscoderInput input = new TranscoderInput(document);
    t.transcode(input, null);
    return t.getLastImage();
  }
View Full Code Here

TOP

Related Classes of de.lmu.ifi.dbs.elki.visualization.batikutil.ThumbnailTranscoder

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.