Class BitmapImage
java.lang.Object
com.teamdev.jxbrowser.view.graphics.BitmapImage<org.eclipse.swt.graphics.Image>
com.teamdev.jxbrowser.view.swt.graphics.BitmapImage
An SWT-specific implementation that allows getting
Image from Bitmap.-
Method Summary
Methods inherited from class com.teamdev.jxbrowser.view.graphics.BitmapImage
toolkitImage
-
Method Details
-
toToolkit
public static org.eclipse.swt.graphics.Image toToolkit(org.eclipse.swt.graphics.Device device, Bitmap bitmap) Creates and returns an instance ofImageobtained from the givenbitmap. The image will have the same width and height as the bitmap.- Parameters:
device- the device on which to the image wll be createdbitmap- the bitmap used to obtainImage- Throws:
IllegalArgumentException- when the givenbitmapsize is empty
-