|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.sun.jimi.core.JimiUtils
Extra functionality to compliment com.sun.jimi.core.Jimi.
| Constructor Summary | |
JimiUtils()
|
|
| Method Summary | |
static java.awt.image.ImageProducer |
aspectAdjust(JimiRasterImage image)
Some image formats contain information about the aspect ratio of their images, aswell as their dimensions in pixels. |
static java.awt.Image |
getThumbnail(java.io.InputStream input,
int width,
int height,
int flags)
Get a thumbnail of an image. |
static java.awt.Image |
getThumbnail(java.io.InputStream input,
int width,
int height,
int flags,
java.lang.String typeID)
Get a thumbnail of an image. |
static java.awt.Image |
getThumbnail(java.lang.String filename,
int width,
int height,
int flags)
Get a thumbnail of an image. |
static java.awt.Image |
getThumbnail(java.net.URL location,
int width,
int height,
int flags)
Get a thumbnail of an image. |
static java.awt.image.ImageProducer |
getThumbnailProducer(java.io.InputStream input,
int width,
int height,
int flags)
Get a thumbnail of an image. |
static java.awt.image.ImageProducer |
getThumbnailProducer(java.io.InputStream input,
int width,
int height,
int flags,
java.lang.String typeID)
Get a thumbnail of an image. |
static java.awt.image.ImageProducer |
getThumbnailProducer(java.lang.String filename,
int width,
int height,
int flags)
Get a thumbnail of an image. |
static java.awt.image.ImageProducer |
getThumbnailProducer(java.net.URL location,
int width,
int height,
int flags)
Get a thumbnail of an image. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public JimiUtils()
| Method Detail |
public static java.awt.image.ImageProducer aspectAdjust(JimiRasterImage image)
TIFF is an example of a format which stores additional information about the aspect ratio.
image - the image to correct the aspect ratio of
public static java.awt.Image getThumbnail(java.lang.String filename,
int width,
int height,
int flags)
filename - the file to load the thumbnail fromwidth - the maximum widthheight - the maximum heightflags - the mode of image loading
public static java.awt.image.ImageProducer getThumbnailProducer(java.lang.String filename,
int width,
int height,
int flags)
filename - the file to load the thumbnail fromwidth - the maximum widthheight - the maximum heightflags - image loading flags
public static java.awt.Image getThumbnail(java.net.URL location,
int width,
int height,
int flags)
location - the URL to load the image fromwidth - the maximum widthheight - the maximum heightflags - the mode of image loading
public static java.awt.image.ImageProducer getThumbnailProducer(java.net.URL location,
int width,
int height,
int flags)
location - the URL to load the image fromwidth - the maximum widthheight - the maximum heightflags - the mode of image loading
public static java.awt.Image getThumbnail(java.io.InputStream input,
int width,
int height,
int flags)
input - the stream to read the image fromwidth - the maximum widthheight - the maximum heightflags - the mode of image loading
public static java.awt.image.ImageProducer getThumbnailProducer(java.io.InputStream input,
int width,
int height,
int flags)
input - the stream to read the image fromwidth - the maximum widthheight - the maximum heightflags - the mode of image loading
public static java.awt.Image getThumbnail(java.io.InputStream input,
int width,
int height,
int flags,
java.lang.String typeID)
input - the stream to read the image fromwidth - the maximum widthheight - the maximum heightflags - the mode of image loadingtypeID - the mime-type of the image format
public static java.awt.image.ImageProducer getThumbnailProducer(java.io.InputStream input,
int width,
int height,
int flags,
java.lang.String typeID)
input - the stream to read the image fromwidth - the maximum widthheight - the maximum heightflags - the mode of image loadingtypeID - the mime-type of the image format
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||