Class PDFImageFactory

  • All Implemented Interfaces:
    ImageFactory

    public class PDFImageFactory
    extends java.lang.Object
    implements ImageFactory
    • Constructor Summary

      Constructors 
      Constructor Description
      PDFImageFactory()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] expandBitmapBits​(byte[] streamBytes, int width, int height)  
      java.awt.Image getImage​(PDFStream imageStream, java.awt.color.ColorSpace cspace, PDFFile srcfile)
      Given a pdf xobject dictionary, return an awt Image object
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PDFImageFactory

        public PDFImageFactory()
    • Method Detail

      • getImage

        @Nullable
        public java.awt.Image getImage​(PDFStream imageStream,
                                       java.awt.color.ColorSpace cspace,
                                       PDFFile srcfile)
        Description copied from interface: ImageFactory
        Given a pdf xobject dictionary, return an awt Image object
        Specified by:
        getImage in interface ImageFactory
      • expandBitmapBits

        public byte[] expandBitmapBits​(byte[] streamBytes,
                                       int width,
                                       int height)