|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.opengl.util.ImageUtil
Utilities for dealing with images.
| Method Summary | |
static BufferedImage |
createCompatibleImage(int width,
int height)
Creates a BufferedImage with a pixel format compatible with the graphics
environment. |
static BufferedImage |
createThumbnail(BufferedImage image,
int thumbWidth)
Creates a thumbnail from an image. |
static void |
flipImageVertically(BufferedImage image)
Flips the supplied BufferedImage vertically. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static void flipImageVertically(BufferedImage image)
public static BufferedImage createCompatibleImage(int width,
int height)
BufferedImage with a pixel format compatible with the graphics
environment. The returned image can thus benefit from hardware accelerated operations
in Java2D API.
width - The width of the image to be createdheight - The height of the image to be created
BufferedImage with a type compatible with the graphics card.
public static BufferedImage createThumbnail(BufferedImage image,
int thumbWidth)
BufferedImage. The original picture is not modified.
image - The original image to sample downthumbWidth - The width of the thumbnail to be created
IllegalArgumentException - If thumbWidth is greater than image.getWidth()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||