Package org.goobi.production.chart

Examples of org.goobi.production.chart.ProjectStatusDraw.paint()


    BufferedImage image = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);
    Graphics2D g2d = image.createGraphics();
    g2d.setRenderingHint(java.awt.RenderingHints.KEY_ANTIALIASING, java.awt.RenderingHints.VALUE_ANTIALIAS_ON);

    ProjectStatusDraw projectStatusDraw = new ProjectStatusDraw(pData, g2d, width, height);
    projectStatusDraw.paint();

    // write image to temporary file
    String localImagePath = ConfigMain.getTempImagesPathAsCompleteDirectory();
    File outputfile = new File(localImagePath + inName);
    ImageIO.write(image, "png", outputfile);
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.