public class Images extends Object
| Modifier and Type | Method and Description |
|---|---|
static BufferedImage |
cloneImage(RenderedImage rImg)
Clone the image.
|
static Image |
createImage(Class baseClass,
String location) |
static Image |
createImage(URL resource) |
static boolean |
hasAlpha(Image image)
This method returns true if the specified image has transparent pixels
Code taken from the Java Developers Almanac 1.4
http://javaalmanac.com/egs/java.awt.image/HasAlpha.html
|
static BufferedImage[] |
split(Image image,
int count,
boolean isHorizontal)
Splits an image into count subimages.
|
static BufferedImage |
toBufferedImage(Image image) |
static BufferedImage |
toBufferedImage(RenderedImage rImg)
Converts the image to a buffered image.
|
static BufferedImage |
toImage(int[] pixels,
int width,
int height)
Converts an array of integer pixels into an image.
|
static BufferedImage |
toIntImage(BufferedImage img)
Converts the image into a format that can be handled easier.
|
static int[] |
toPixels(BufferedImage img)
Converts an image into an array of integer pixels.
|
public static BufferedImage toBufferedImage(RenderedImage rImg)
public static BufferedImage cloneImage(RenderedImage rImg)
public static BufferedImage toBufferedImage(Image image)
public static boolean hasAlpha(Image image)
public static BufferedImage[] split(Image image, int count, boolean isHorizontal)
public static BufferedImage toIntImage(BufferedImage img)
public static int[] toPixels(BufferedImage img)
public static BufferedImage toImage(int[] pixels, int width, int height)
Copyright © 2014. All Rights Reserved.