Class ExcelImageHandler

  • public class ExcelImageHandler
    extends Object
    A specialized class containing all image handling functionality for Excel exports.
    • Constructor Detail

      • ExcelImageHandler

        public ExcelImageHandler​(org.pentaho.reporting.libraries.resourceloader.ResourceManager resourceManager,
                                 ExcelPrinterBase printerBase)
    • Method Detail

      • createImageCell

        public void createImageCell​(StyleSheet layoutContext,
                                    ImageContainer image,
                                    SlimSheetLayout currentLayout,
                                    TableRectangle rectangle,
                                    StrictBounds cellBounds)
        Produces the content for image or drawable cells. Excel does not support image-content in cells. Images are rendered to an embedded OLE canvas instead, which is then positioned over the cell that would contain the image.
        layoutContext - the stylesheet of the render node that produced the image.
        image - the image object
        currentLayout - the current sheet layout containing all row and column breaks
        rectangle - the current cell in grid-coordinates
        cellBounds - the bounds of the cell.