Class SWTFSImage

java.lang.Object
org.xhtmlrenderer.swt.SWTFSImage
All Implemented Interfaces:
org.xhtmlrenderer.extend.FSImage

public class SWTFSImage extends Object implements org.xhtmlrenderer.extend.FSImage
Author:
Vianney le Clément
  • Constructor Details

    • SWTFSImage

      public SWTFSImage()
      Create a "null" image.
    • SWTFSImage

      public SWTFSImage(org.eclipse.swt.graphics.Image image, org.xhtmlrenderer.extend.UserAgentCallback uac, String uri)
    • SWTFSImage

      public SWTFSImage(SWTFSImage image)
  • Method Details

    • getImage

      public org.eclipse.swt.graphics.Image getImage()
      Get the SWT image. Reload it from the UAC if it was disposed.
    • getHeight

      public int getHeight()
      Specified by:
      getHeight in interface org.xhtmlrenderer.extend.FSImage
    • setHeight

      public void setHeight(int height)
    • getWidth

      public int getWidth()
      Specified by:
      getWidth in interface org.xhtmlrenderer.extend.FSImage
    • setWidth

      public void setWidth(int width)
    • scale

      public void scale(int width, int height)
      Specified by:
      scale in interface org.xhtmlrenderer.extend.FSImage