Package org.apache.poi.ss.usermodel

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


      anchor.setAnchorType(ClientAnchor.MOVE_DONT_RESIZE); // Move, but don't size
      if (patriarch == null)
      {
        patriarch = sheet.createDrawingPatriarch();
      }
      final Picture picture = patriarch.createPicture(anchor, pictureId);
      ExcelPrinter.logger.info("Created image: " + pictureId + " => " + picture);
    }
    catch (IOException e)
    {
      ExcelPrinter.logger.warn("Failed to add image. Ignoring.", e);
View Full Code Here


      final ClientAnchor anchor = computeClientAnchor(currentLayout, rectangle, cb);

      Drawing patriarch = printerBase.getDrawingPatriarch();

      final Picture picture = patriarch.createPicture(anchor, pictureId);
      logger.info(String.format("Created image: %d => %s", pictureId, picture))// NON-NLS
    }
    catch (final IOException e)
    {
      logger.warn("Failed to add image. Ignoring.", e)// NON-NLS
View Full Code Here

    int index = wb.addPicture(imgBytes.toByteArray(),imgType);
    imgBytes.close();
    fis.close();
   
    HSSFClientAnchor anchor = new HSSFClientAnchor(dx1, dy1, dx2, dy2, (short) col,  row, (short) colend, rowend);
    Picture pict = drawing.createPicture(anchor, index);
   
    //HSSFPatriarch patriarch = sheet.createDrawingPatriarch();
    //patriarch.createPicture(anchor, index);
    //anchor.setAnchorType(0);
  }
View Full Code Here

TOP

Related Classes of org.apache.poi.ss.usermodel.Picture

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.