Class PDFAsImage

java.lang.Object
org.xhtmlrenderer.pdf.PDFAsImage
All Implemented Interfaces:
FSImage

public class PDFAsImage extends Object implements FSImage
  • Field Details

    • _source

      private final URI _source
    • _width

      private final float _width
    • _height

      private final float _height
    • _unscaledWidth

      private final float _unscaledWidth
    • _unscaledHeight

      private final float _unscaledHeight
  • Constructor Details

    • PDFAsImage

      public PDFAsImage(URI source, float width, float height)
    • PDFAsImage

      private PDFAsImage(URI source, float unscaledWidth, float unscaledHeight, float width, float height)
  • Method Details

    • getWidth

      public int getWidth()
      Specified by:
      getWidth in interface FSImage
    • getHeight

      public int getHeight()
      Specified by:
      getHeight in interface FSImage
    • scale

      public @NonNull FSImage scale(int width, int height)
      Specified by:
      scale in interface FSImage
    • getURI

      public URI getURI()
    • getWidthAsFloat

      public float getWidthAsFloat()
    • getHeightAsFloat

      public float getHeightAsFloat()
    • getUnscaledHeight

      public float getUnscaledHeight()
    • getUnscaledWidth

      public float getUnscaledWidth()
    • scaleHeight

      public float scaleHeight()
    • scaleWidth

      public float scaleWidth()