|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjsky.image.ImageUtil
public class ImageUtil
Contains static convenience and utility methods for dealing with JAI images.
Constructor Summary | |
---|---|
ImageUtil()
|
Method Summary | |
---|---|
static double |
getImageProperty(javax.media.jai.PlanarImage im,
java.lang.String name,
double defaultValue)
Return the value of the given property for the given image as a double, or return the given default value, if the property was not defined. |
static int |
getImageProperty(javax.media.jai.PlanarImage im,
java.lang.String name,
int defaultValue)
Return the value of the given property for the given image as an int, or return the given default value, if the property was not defined. |
static java.lang.String |
getImageProperty(javax.media.jai.PlanarImage im,
java.lang.String name,
java.lang.String defaultValue)
Return the value of the given property for the given image as a String, or return the given default value, if the property was not defined. |
static java.awt.RenderingHints |
getSampleModelHint(int tileWidth,
int tileHeight,
int dataType)
Return a RenderingHints object defining the sample model (data type) of the resulting image of an operation. |
static java.awt.RenderingHints |
getTileCacheHint(int numTiles,
int tileWidth,
int tileHeight)
Return a RenderingHints object defining a tile cache with the given number of tiles of the given size. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ImageUtil()
Method Detail |
---|
public static double getImageProperty(javax.media.jai.PlanarImage im, java.lang.String name, double defaultValue)
public static int getImageProperty(javax.media.jai.PlanarImage im, java.lang.String name, int defaultValue)
public static java.lang.String getImageProperty(javax.media.jai.PlanarImage im, java.lang.String name, java.lang.String defaultValue)
public static java.awt.RenderingHints getTileCacheHint(int numTiles, int tileWidth, int tileHeight)
public static java.awt.RenderingHints getSampleModelHint(int tileWidth, int tileHeight, int dataType)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |