|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object framework.Images
public class Images
This class contains various methods for loading and manipulating images.
Constructor Summary | |
---|---|
Images()
|
Method Summary | |
---|---|
static BufferedImage |
createCompatibleImage(Image image)
Optimise an image for high-speed drawing to the screen. |
static BufferedImage |
createCompatibleImage(int width,
int height,
int transparency)
Create a blank image optimised for high-speed drawing to the screen. |
static void |
drawCentredImage(Graphics2D g,
Image image,
double x,
double y)
|
static void |
drawRotatedImage(Graphics2D g,
Image image,
double x,
double y,
double radians)
|
static void |
drawTiledImage(Graphics2D g,
Image image,
int xOffset,
int yOffset)
|
static void |
drawTiledImage(Graphics2D g,
Image image,
Shape drawArea,
int xOffset,
int yOffset)
|
static BufferedImage[] |
getFrames(File file)
|
static BufferedImage[] |
getFrames(File file,
int count)
|
static BufferedImage[] |
getFrames(File file,
int w,
int h)
|
static BufferedImage[] |
getFrames(File file,
int w,
int h,
int count)
|
static BufferedImage[] |
getFrames(InputStream stream)
|
static BufferedImage[] |
getFrames(InputStream stream,
int count)
|
static BufferedImage[] |
getFrames(InputStream stream,
int w,
int h)
|
static BufferedImage[] |
getFrames(InputStream stream,
int w,
int h,
int count)
|
static BufferedImage[] |
getFrames(URL url)
|
static BufferedImage[] |
getFrames(URL url,
int count)
|
static BufferedImage[] |
getFrames(URL url,
int w,
int h)
|
static BufferedImage[] |
getFrames(URL url,
int w,
int h,
int count)
|
static BufferedImage |
getImage(File file)
|
static BufferedImage |
getImage(InputStream stream)
|
static BufferedImage |
getImage(String file,
Class c)
|
static BufferedImage |
getImage(URL url)
|
static int |
getTransparency(Image image)
Get the transparency level of an image. |
static BufferedImage[] |
rotate(Image[] images,
double radians)
|
static BufferedImage[] |
rotate(Image[] images,
double radians,
boolean keepCorners)
|
static BufferedImage |
rotate(Image image,
double radians)
|
static BufferedImage |
rotate(Image image,
double radians,
boolean keepCorners)
|
static BufferedImage[] |
split(BufferedImage image)
|
static BufferedImage[] |
split(BufferedImage image,
int count)
|
static BufferedImage[] |
split(BufferedImage image,
int w,
int h)
|
static BufferedImage[] |
split(BufferedImage image,
int w,
int h,
int count)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Images()
Method Detail |
---|
public static BufferedImage getImage(URL url) throws IOException
IOException
public static BufferedImage getImage(File file) throws IOException
IOException
public static BufferedImage getImage(InputStream stream) throws IOException
IOException
public static BufferedImage getImage(String file, Class c) throws IOException
IOException
public static BufferedImage[] split(BufferedImage image)
public static BufferedImage[] split(BufferedImage image, int count)
public static BufferedImage[] split(BufferedImage image, int w, int h)
public static BufferedImage[] split(BufferedImage image, int w, int h, int count)
public static BufferedImage[] getFrames(URL url) throws IOException
IOException
public static BufferedImage[] getFrames(URL url, int count) throws IOException
IOException
public static BufferedImage[] getFrames(URL url, int w, int h) throws IOException
IOException
public static BufferedImage[] getFrames(URL url, int w, int h, int count) throws IOException
IOException
public static BufferedImage[] getFrames(File file) throws IOException
IOException
public static BufferedImage[] getFrames(File file, int count) throws IOException
IOException
public static BufferedImage[] getFrames(File file, int w, int h) throws IOException
IOException
public static BufferedImage[] getFrames(File file, int w, int h, int count) throws IOException
IOException
public static BufferedImage[] getFrames(InputStream stream) throws IOException
IOException
public static BufferedImage[] getFrames(InputStream stream, int count) throws IOException
IOException
public static BufferedImage[] getFrames(InputStream stream, int w, int h) throws IOException
IOException
public static BufferedImage[] getFrames(InputStream stream, int w, int h, int count) throws IOException
IOException
public static BufferedImage rotate(Image image, double radians)
public static BufferedImage rotate(Image image, double radians, boolean keepCorners)
public static BufferedImage[] rotate(Image[] images, double radians)
public static BufferedImage[] rotate(Image[] images, double radians, boolean keepCorners)
public static void drawTiledImage(Graphics2D g, Image image, int xOffset, int yOffset)
public static void drawTiledImage(Graphics2D g, Image image, Shape drawArea, int xOffset, int yOffset)
public static void drawCentredImage(Graphics2D g, Image image, double x, double y)
public static void drawRotatedImage(Graphics2D g, Image image, double x, double y, double radians)
public static BufferedImage createCompatibleImage(Image image)
image
- the original image
public static BufferedImage createCompatibleImage(int width, int height, int transparency)
width
- width of the created imageheight
- height of the created imagetransparency
- transparency level of the created image (java.awt.Transparency
constant).
public static int getTransparency(Image image)
image
- the image
java.awt.Transparency
constants
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |