|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlib.ImageLib
public class ImageLib
Constructor Summary | |
---|---|
ImageLib()
|
Method Summary | |
---|---|
static void |
drawEllipse(java.awt.image.BufferedImage img,
java.awt.Color c,
int x,
int y,
int w,
int h)
Draw an ellipse at (x,y) in image img |
static void |
drawImage(java.awt.image.BufferedImage object_img,
java.awt.image.BufferedImage target_img,
int x,
int y)
Draw an image (target) at (x,y) in another image (object) |
static void |
drawRectangle(java.awt.image.BufferedImage img,
java.awt.Color c,
int x,
int y,
int w,
int h)
Draw a rectangle at (x,y) in image img |
static java.awt.image.BufferedImage |
loadImage(java.lang.String pathname)
Loading a local image |
static java.awt.image.BufferedImage |
loadImageFromWeb(java.lang.String url)
Loading an image from the web |
static void |
maakGif(java.lang.String string,
int i,
int j)
|
static void |
saveImage(java.awt.image.BufferedImage img,
java.lang.String ref)
|
static java.awt.image.BufferedImage |
scale(java.awt.image.BufferedImage img,
double sx,
double sy)
Return a scaled version of an image |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ImageLib()
Method Detail |
---|
public static void drawRectangle(java.awt.image.BufferedImage img, java.awt.Color c, int x, int y, int w, int h)
img
- The image to be drawn inc
- The color of the rectanglex
- The x-coordinate of the rectangle's upper-left cornery
- The y-coordinate of the rectangle's upper-left cornerw
- The width of the rectangleh
- The height of the rectanglepublic static void drawEllipse(java.awt.image.BufferedImage img, java.awt.Color c, int x, int y, int w, int h)
public static void drawImage(java.awt.image.BufferedImage object_img, java.awt.image.BufferedImage target_img, int x, int y)
public static java.awt.image.BufferedImage scale(java.awt.image.BufferedImage img, double sx, double sy)
sx
- scale in xsy
- scale in ypublic static void saveImage(java.awt.image.BufferedImage img, java.lang.String ref)
img
- The BufferedImage to saveref
- Pathname, ending in .png or .jpgpublic static java.awt.image.BufferedImage loadImage(java.lang.String pathname)
pathname
-
public static java.awt.image.BufferedImage loadImageFromWeb(java.lang.String url)
url
-
public static void maakGif(java.lang.String string, int i, int j)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |