public final class BitmapImage extends BitmapImage<org.eclipse.swt.graphics.Image>
Image from Bitmap.| Modifier and Type | Method and Description |
|---|---|
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. |
toolkitImagepublic static org.eclipse.swt.graphics.Image toToolkit(org.eclipse.swt.graphics.Device device,
Bitmap bitmap)
Image obtained from the given bitmap. The
image will have the same width and height as the bitmap.device - the device on which to the image wll be createdbitmap - the bitmap used to obtain Imagejava.lang.IllegalArgumentException - when the given bitmap size is empty