Examples of XSSFPicture


Examples of org.apache.poi.xssf.usermodel.XSSFPicture

      int index = workbook.addPicture(bytes, type);
      XSSFClientAnchor anchor = new XSSFClientAnchor(0, 0, 0, 0, row, column, row, column);

      XSSFDrawing drawing = s.createDrawingPatriarch();
      XSSFPicture picture = drawing.createPicture(anchor, index);

      picture.resize();

      // if ((width != 0) && (height != 0)) {
      // picture.getImageDimension().setSize(width, height);
      // }
    }
View Full Code Here

Examples of org.apache.poi.xssf.usermodel.XSSFPicture

        for (POIXMLDocumentPart dr : sheet.getRelations()) { 
            if (dr instanceof XSSFDrawing) { 
                XSSFDrawing drawing = (XSSFDrawing) dr; 
                List<XSSFShape> shapes = drawing.getShapes()
                for (XSSFShape shape : shapes) { 
                    XSSFPicture pic = (XSSFPicture) shape; 
                    XSSFClientAnchor anchor = pic.getPreferredSize()
                    CTMarker ctMarker = anchor.getFrom()
                    String picIndex = ctMarker.getRow() + "_" + ctMarker.getCol()
                    sheetIndexPicMap.put(picIndex, pic.getPictureData())
               
            } 
        } 
        return sheetIndexPicMap; 
   
View Full Code Here

Examples of org.apache.poi.xssf.usermodel.XSSFPicture

      int index = workbook.addPicture(bytes, type);
      XSSFClientAnchor anchor = new XSSFClientAnchor(0, 0, 0, 0, row, column, row, column);

      XSSFDrawing drawing = s.createDrawingPatriarch();
      XSSFPicture picture = drawing.createPicture(anchor, index);

      picture.resize();

      // if ((width != 0) && (height != 0)) {
      // picture.getImageDimension().setSize(width, height);
      // }
    }
View Full Code Here

Examples of org.apache.poi.xssf.usermodel.XSSFPicture

      int index = workbook.addPicture(bytes, type);
      XSSFClientAnchor anchor = new XSSFClientAnchor(0, 0, 0, 0, row, column, row, column);

      XSSFDrawing drawing = s.createDrawingPatriarch();
      XSSFPicture picture = drawing.createPicture(anchor, index);

      picture.resize();

      // if ((width != 0) && (height != 0)) {
      // picture.getImageDimension().setSize(width, height);
      // }
    }
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.