kryshen.tema.functions
Class ImageConverter
java.lang.Object
kryshen.tema.Function
kryshen.tema.functions.ImageConverter
public class ImageConverter
- extends Function
Convert images to specified format.
- Author:
- Mikhail Kryshen
Method Summary |
static void |
convert(java.io.File source,
java.io.File dest,
java.lang.String format,
int maxWidth,
int maxHeight)
|
int |
invoke(FunctionDataParser fdp,
java.io.Writer out)
Invoke the function. |
static void |
main(java.lang.String[] args)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CONVERT_IMAGE
public static final Function CONVERT_IMAGE
ImageConverter
public ImageConverter()
invoke
public int invoke(FunctionDataParser fdp,
java.io.Writer out)
throws java.io.IOException,
TemplateException
- Description copied from class:
Function
- Invoke the function.
- Specified by:
invoke
in class Function
- Parameters:
fdp
- FunctionDataParser to access function arguments.out
- Writer for the function output.
- Throws:
java.io.IOException
TemplateException
convert
public static void convert(java.io.File source,
java.io.File dest,
java.lang.String format,
int maxWidth,
int maxHeight)
throws java.io.IOException,
java.lang.InterruptedException
- Throws:
java.io.IOException
java.lang.InterruptedException
main
public static void main(java.lang.String[] args)
throws java.io.IOException,
java.lang.InterruptedException
- Throws:
java.io.IOException
java.lang.InterruptedException