Class SvgImage

All Implemented Interfaces:
Cloneable, org.xhtmlrenderer.extend.FSImage

public class SvgImage extends ITextFSImage
  • Field Details

    • image

      protected final byte[] image
    • size

      protected final org.xhtmlrenderer.extend.Size size
    • uri

      protected final String uri
  • Constructor Details

    • SvgImage

      public SvgImage(byte[] image, org.xhtmlrenderer.extend.Size size, String uri)
  • Method Details

    • getWidth

      public int getWidth()
      Specified by:
      getWidth in interface org.xhtmlrenderer.extend.FSImage
      Overrides:
      getWidth in class ITextFSImage
    • getHeight

      public int getHeight()
      Specified by:
      getHeight in interface org.xhtmlrenderer.extend.FSImage
      Overrides:
      getHeight in class ITextFSImage
    • scale

      @CheckReturnValue public SvgImage scale(int width, int height)
      Specified by:
      scale in interface org.xhtmlrenderer.extend.FSImage
      Overrides:
      scale in class ITextFSImage
    • getImage

      public org.openpdf.text.Image getImage()
      Overrides:
      getImage in class ITextFSImage
    • clone

      public Object clone()
      Overrides:
      clone in class ITextFSImage