public class ImageUtils extends Object
://flyingdogz.wordpress.com/2008/02/11/image-rotate-in-java-2-easier-to-use/| Constructor and Description |
|---|
ImageUtils() |
| Modifier and Type | Method and Description |
|---|---|
static ImageIcon |
createImageIcon(Class<?> clazz,
String path)
Returns an ImageIcon, or null if the path was invalid.
|
static GraphicsConfiguration |
getDefaultConfiguration() |
static boolean |
hasAlpha(Image image) |
static ImageIcon |
loadImageIcon(Class<?> clazz,
String path,
int width,
int height) |
static Image |
rotateImage(Image img,
double degree) |
static BufferedImage |
tilt(BufferedImage image,
double angle) |
static BufferedImage |
toBufferedImage(Image image) |
public static ImageIcon createImageIcon(Class<?> clazz, String path)
clazz - the classpath - the pathpublic static ImageIcon loadImageIcon(Class<?> clazz, String path, int width, int height)
public static BufferedImage tilt(BufferedImage image, double angle)
public static GraphicsConfiguration getDefaultConfiguration()
public static BufferedImage toBufferedImage(Image image)
public static boolean hasAlpha(Image image)
Copyright © 2020. All rights reserved.