public class ImageUtil extends Object
Constructor and Description |
---|
ImageUtil() |
Modifier and Type | Method and Description |
---|---|
static double |
getImageProperty(javax.media.jai.PlanarImage im,
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,
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 String |
getImageProperty(javax.media.jai.PlanarImage im,
String name,
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 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 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.
|
public static double getImageProperty(javax.media.jai.PlanarImage im, String name, double defaultValue)
public static int getImageProperty(javax.media.jai.PlanarImage im, String name, int defaultValue)
public static String getImageProperty(javax.media.jai.PlanarImage im, String name, String defaultValue)
public static RenderingHints getTileCacheHint(int numTiles, int tileWidth, int tileHeight)
public static RenderingHints getSampleModelHint(int tileWidth, int tileHeight, int dataType)
Copyright © 2023 Central Laboratory of the Research Councils. All Rights Reserved.