Examples of PictureData


Examples of org.apache.poi.hslf.usermodel.PictureData

    public void draw(Graphics2D graphics){
        AffineTransform at = graphics.getTransform();
        ShapePainter.paint(this, graphics);

        PictureData data = getPictureData();
        data.draw(graphics, this);

        graphics.setTransform(at);
    }
View Full Code Here

Examples of org.apache.poi.ss.usermodel.PictureData

      Map<String, ExcelImportEntity> excelParams, String titleString,
      Map<String, PictureData> pictures, ImportParams params) throws Exception {
    if (pictures == null) {
      return;
    }
    PictureData image = pictures.get(picId);
    byte[] data = image.getData();
    String fileName = "pic"+Math.round(Math.random()*100000000000L);
    fileName+= "."+ExcelPublicUtil.getFileExtendName(data);
    if(excelParams.get(titleString).getSaveType()==1){
      String path = ContextHolderUtils.getRequest().getSession().getServletContext().getRealPath("\\") +
      getSaveUrl(excelParams.get(titleString),object);
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.