Class BitmapImage

java.lang.Object
com.teamdev.jxbrowser.view.graphics.BitmapImage<org.eclipse.swt.graphics.Image>
com.teamdev.jxbrowser.view.swt.graphics.BitmapImage

public final class BitmapImage extends BitmapImage<org.eclipse.swt.graphics.Image>
An SWT-specific implementation that allows getting Image from Bitmap.
  • Method Details

    • toToolkit

      public static org.eclipse.swt.graphics.Image toToolkit(org.eclipse.swt.graphics.Device device, Bitmap bitmap)
      Creates and returns an instance of Image obtained from the given bitmap. The image will have the same width and height as the bitmap.
      Parameters:
      device - the device on which to the image wll be created
      bitmap - the bitmap used to obtain Image
      Throws:
      IllegalArgumentException - when the given bitmap size is empty