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 image magick.

Version:
$Id: ConvertImageMagick.java,v 1.15 2001/06/25 14:33:03 vpro Exp $
Author:
Rico Jansen

Constructor Summary
ConvertImageMagick()
           
 
Method Summary
 byte[] ConvertImage(byte[] input, java.util.Vector commands)
          This functions converts an image by the given parameters
 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
 

Constructor Detail

ConvertImageMagick

public ConvertImageMagick()
Method Detail

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 image
commands - 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.


MMBase 2001