Package org.pentaho.di.core
Class SwtUniversalImage
java.lang.Object
org.pentaho.di.core.SwtUniversalImage
- Direct Known Subclasses:
SwtUniversalImageBitmap,SwtUniversalImageSvg
Universal image storage for SWT processing. It contains SVG or bitmap image depends on file and settings.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()org.eclipse.swt.graphics.ImagegetAsBitmap(org.eclipse.swt.graphics.Device device) Deprecated.Use getAsBitmapForSize() instead.org.eclipse.swt.graphics.ImagegetAsBitmapForSize(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.ImagegetAsBitmapForSize(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.ImagerenderRotated(org.eclipse.swt.graphics.Device device, int width, int height, double angleRadians) protected abstract org.eclipse.swt.graphics.ImagerenderSimple(org.eclipse.swt.graphics.Device device) Deprecated.protected abstract org.eclipse.swt.graphics.ImagerenderSimple(org.eclipse.swt.graphics.Device device, int width, int height) protected org.eclipse.swt.graphics.Imageswing2swt(org.eclipse.swt.graphics.Device device, BufferedImage img) Converts BufferedImage to SWT/Image with alpha channel.
-
Constructor Details
-
SwtUniversalImage
public SwtUniversalImage()
-
-
Method Details
-
renderSimple
@Deprecated protected abstract org.eclipse.swt.graphics.Image renderSimple(org.eclipse.swt.graphics.Device device) Deprecated. -
renderSimple
protected abstract org.eclipse.swt.graphics.Image renderSimple(org.eclipse.swt.graphics.Device device, int width, int height) -
renderRotated
protected abstract org.eclipse.swt.graphics.Image renderRotated(org.eclipse.swt.graphics.Device device, int width, int height, double angleRadians) -
dispose
public void dispose() -
getAsBitmap
@Deprecated public org.eclipse.swt.graphics.Image getAsBitmap(org.eclipse.swt.graphics.Device device) Deprecated.Use getAsBitmapForSize() instead. -
getAsBitmapForSize
public 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. -
getAsBitmapForSize
public 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. It required against lost corners on rotate. -
swing2swt
protected org.eclipse.swt.graphics.Image swing2swt(org.eclipse.swt.graphics.Device device, BufferedImage img) Converts BufferedImage to SWT/Image with alpha channel.
-