|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectadams.core.ImageMagickHelper
public class ImageMagickHelper
Helper class for ImageMagick (http://www.imagemagick.org/).
| Field Summary | |
|---|---|
static String |
ENV_PATH
the environment variable to check. |
protected static Boolean |
m_ConvertPresent
whether "convert" is present. |
| Constructor Summary | |
|---|---|
ImageMagickHelper()
|
|
| Method Summary | |
|---|---|
protected static String |
getMissingCommandErrorMessage(String cmd)
Returns a standard error message if specifiec command is not available. |
static String |
getMissingConvertErrorMessage()
Returns a standard error message if "convert" is not available. |
static boolean |
isConvertAvailable()
Checks whether the "convert" utility is available. |
static BufferedImage |
read(File file)
Reads a BufferedImage from the file. |
static BufferedImage |
read(InputStream stream)
Reads a BufferedImage from the stream. |
static BufferedImage |
read(URL url)
Reads a BufferedImage from a URL. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String ENV_PATH
protected static Boolean m_ConvertPresent
| Constructor Detail |
|---|
public ImageMagickHelper()
| Method Detail |
|---|
public static boolean isConvertAvailable()
protected static String getMissingCommandErrorMessage(String cmd)
cmd - the command to use in error message, e.g., "convert"
public static String getMissingConvertErrorMessage()
public static BufferedImage read(File file)
file - the file to read the image from
public static BufferedImage read(URL url)
url - the URL to read the image from
public static BufferedImage read(InputStream stream)
stream - the stream to read the image from
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||