Examples of EpsGraphics


Examples of net.sf.epsgraphics.EpsGraphics

      BufferedImage bi = (BufferedImage)getImage(graphicPanel);
      ImageIO.write(bi, ext, file);
    }
   
    private void saveAsEPS(File file) throws IOException{
      EpsGraphics eps = null;
      try  {
        OutputStream output = new FileOutputStream(file);
        eps = new EpsGraphics("Titre", output, 0, 0,
                graphicPanel.getWidth(), graphicPanel.getHeight(),
                ColorMode.COLOR_RGB);
        graphicPanel.drawAll(eps);
        //eps.close();
      } catch (IOException er) {
        System.err.println("Erreur durant l'écriture du fichier! " + er.getMessage());
      } finally {
        if (eps != null){
          eps.close();
        }
      }
    }
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.