Package org.apache.clerezza.platform.content

Examples of org.apache.clerezza.platform.content.InfoDiscobit


   */
  public UriRef generateAlternativeImage(GraphNode infoBitNode, int width, int height,
      boolean exact) {
    try {
      isAltRepresentation.set(Boolean.TRUE);
      InfoDiscobit infoBit = InfoDiscobit.createInstance(infoBitNode);
      BufferedImage buffImage = ImageIO.read(new ByteArrayInputStream(infoBit.getData()));
      return generateAlternativeImage(buffImage, new Resolution(width, height),
          MediaType.valueOf(infoBit.getContentType()), infoBitNode, exact);
    } catch (IOException ex) {
      throw new RuntimeException(ex);
    } finally {
      isAltRepresentation.set(Boolean.FALSE);
    }
View Full Code Here

TOP

Related Classes of org.apache.clerezza.platform.content.InfoDiscobit

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.