public abstract class SwtUniversalImage extends Object
Constructor and Description |
---|
SwtUniversalImage() |
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
org.eclipse.swt.graphics.Image |
getAsBitmap(org.eclipse.swt.graphics.Device device)
Deprecated.
Use getAsBitmapForSize() instead.
|
org.eclipse.swt.graphics.Image |
getAsBitmapForSize(org.eclipse.swt.graphics.Device device,
int width,
int height)
Method getAsBitmapForSize(..., angle) can't be called, because it returns bigger picture.
|
org.eclipse.swt.graphics.Image |
getAsBitmapForSize(org.eclipse.swt.graphics.Device device,
int width,
int height,
double angleRadians)
Draw rotated image on double canvas size.
|
protected abstract org.eclipse.swt.graphics.Image |
renderRotated(org.eclipse.swt.graphics.Device device,
int width,
int height,
double angleRadians) |
protected abstract org.eclipse.swt.graphics.Image |
renderSimple(org.eclipse.swt.graphics.Device device)
Deprecated.
|
protected abstract org.eclipse.swt.graphics.Image |
renderSimple(org.eclipse.swt.graphics.Device device,
int width,
int height) |
protected org.eclipse.swt.graphics.Image |
swing2swt(org.eclipse.swt.graphics.Device device,
BufferedImage img)
Converts BufferedImage to SWT/Image with alpha channel.
|
@Deprecated protected abstract org.eclipse.swt.graphics.Image renderSimple(org.eclipse.swt.graphics.Device device)
protected abstract org.eclipse.swt.graphics.Image renderSimple(org.eclipse.swt.graphics.Device device, int width, int height)
protected abstract org.eclipse.swt.graphics.Image renderRotated(org.eclipse.swt.graphics.Device device, int width, int height, double angleRadians)
public void dispose()
@Deprecated public org.eclipse.swt.graphics.Image getAsBitmap(org.eclipse.swt.graphics.Device device)
public org.eclipse.swt.graphics.Image getAsBitmapForSize(org.eclipse.swt.graphics.Device device, int width, int height)
public org.eclipse.swt.graphics.Image getAsBitmapForSize(org.eclipse.swt.graphics.Device device, int width, int height, double angleRadians)
protected org.eclipse.swt.graphics.Image swing2swt(org.eclipse.swt.graphics.Device device, BufferedImage img)
Copyright © 2019 Hitachi Vantara. All rights reserved.