public class ImageUtils extends Object
| Constructor and Description |
|---|
ImageUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Frame |
display(BufferedImage image) |
static Frame |
display(BufferedImage image,
String s) |
static BufferedImage |
loadImage(String filename) |
static BufferedImage |
loadImage(URL imageURL) |
static BufferedImage |
newImage(int w,
int h)
Creates a new ARGB bufferedimage of the specified size
|
static int |
randomColour() |
static BufferedImage |
scaleImage(BufferedImage img,
int w,
int h) |
public static BufferedImage loadImage(String filename)
public static BufferedImage newImage(int w, int h)
w - h - public static BufferedImage loadImage(URL imageURL)
public static int randomColour()
public static BufferedImage scaleImage(BufferedImage img, int w, int h)
public static Frame display(BufferedImage image)
public static Frame display(BufferedImage image, String s)
Copyright © 2013. All Rights Reserved.