org.mmbase.module.builders
Class ConvertImageMagick
java.lang.Object
|
+--org.mmbase.module.builders.ConvertImageMagick
- All Implemented Interfaces:
- ImageConvertInterface
- public class ConvertImageMagick
- extends java.lang.Object
- implements ImageConvertInterface
Converts images using ImageMagick.
- Version:
- $Id: ConvertImageMagick.java,v 1.24 2002/02/12 19:30:42 michiel Exp $
- Author:
- Rico Jansen
|
Method Summary |
byte[] |
convertImage(byte[] input,
java.util.Vector commands)
This functions converts an image by the given parameters |
byte[] |
ConvertImage(byte[] input,
java.util.Vector commands)
Deprecated. Use convertImage |
void |
init(java.util.Hashtable params)
This function initalises this class |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConvertImageMagick
public ConvertImageMagick()
init
public void init(java.util.Hashtable params)
- This function initalises this class
- Specified by:
init in interface ImageConvertInterface
- Parameters:
params - a Hashtable of Strings containing informationn, this should contina the key's
ImageConvert.ConverterRoot and ImageConvert.ConverterCommand specifing the converter root....
convertImage
public byte[] convertImage(byte[] input,
java.util.Vector commands)
- This functions converts an image by the given parameters
- Specified by:
convertImage in interface ImageConvertInterface
- Parameters:
input - an array of byte which represents the original imagecommands - a Vector of Strings containing commands which are operations on the image which will be returned.
ImageConvert.converterRoot and ImageConvert.converterCommand specifing the converter root....- Returns:
- an array of
bytes containing the new converted image.
ConvertImage
public byte[] ConvertImage(byte[] input,
java.util.Vector commands)
- Deprecated. Use convertImage
- Specified by:
ConvertImage in interface ImageConvertInterface
MMBase 2002