public final class GraphicsUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.awt.image.BufferedImage |
convertToAWT(org.eclipse.swt.graphics.ImageData data)
Converts SWT
ImageData into AWT BufferedImage Taken from Eclipse snippet 156. |
static org.eclipse.swt.graphics.ImageData |
convertToSWT(java.awt.image.BufferedImage bufferedImage)
Converts a
BufferedImage to a SWT ImageData. |
static java.awt.image.BufferedImage |
resize(java.awt.image.BufferedImage image,
int width,
int height)
Verändert die Größe eines Images
|
public static java.awt.image.BufferedImage resize(java.awt.image.BufferedImage image,
int width,
int height)
image - image das in der Größe verändert werden sollwidth - die neue Breite des Imagesheight - die neue Höhe des Imagespublic static org.eclipse.swt.graphics.ImageData convertToSWT(java.awt.image.BufferedImage bufferedImage)
BufferedImage to a SWT ImageData. Taken from Eclipse snippet 156. For more information
see:
"http://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet156.java"bufferedImage - the AWT BufferedImageImageDatapublic static java.awt.image.BufferedImage convertToAWT(org.eclipse.swt.graphics.ImageData data)
ImageData into AWT BufferedImage Taken from Eclipse snippet 156. For more
information see:
"http://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet156.java"data - SWT ImageData image to be transfered