com.golden.gamedev.util
Class ImageUtil2
java.lang.Object
|
+--com.golden.gamedev.util.ImageUtil2
- public class ImageUtil2
- extends Object
Buggy version. This class load images using javax.imageio.ImageIO.
Perfectly runs in window mode and fullscreen mode, but in applet mode
loading images throw exception or the loaded images are dissolved.
Maybe in the future, this class will be replacing current ImageUtil,
since this class used more new technologies.
Method Summary |
static BufferedImage |
applyMask(Image image,
Color maskColor)
|
static BufferedImage |
createImage(int width,
int height)
|
static BufferedImage |
createImage(int width,
int height,
int transparency)
|
static BufferedImage |
getImage(URL url)
|
static BufferedImage |
getImage(URL url,
Color maskColor)
|
static BufferedImage |
getImage(URL url,
int transparency)
|
static BufferedImage[] |
getImages(URL url,
int col,
int row)
|
static BufferedImage[] |
getImages(URL url,
int col,
int row,
Color maskColor)
|
static void |
saveImage(BufferedImage image,
File imageFile)
|
static void |
saveImage(BufferedImage image,
String imageFile)
|
static BufferedImage[] |
splitImages(BufferedImage image,
int col,
int row)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getImage
public static BufferedImage getImage(URL url,
int transparency)
getImage
public static BufferedImage getImage(URL url)
getImage
public static BufferedImage getImage(URL url,
Color maskColor)
getImages
public static BufferedImage[] getImages(URL url,
int col,
int row)
getImages
public static BufferedImage[] getImages(URL url,
int col,
int row,
Color maskColor)
splitImages
public static BufferedImage[] splitImages(BufferedImage image,
int col,
int row)
createImage
public static BufferedImage createImage(int width,
int height,
int transparency)
createImage
public static BufferedImage createImage(int width,
int height)
saveImage
public static void saveImage(BufferedImage image,
File imageFile)
saveImage
public static void saveImage(BufferedImage image,
String imageFile)
applyMask
public static BufferedImage applyMask(Image image,
Color maskColor)