public final class EMF2PNG extends Object implements ImageConverterFactory
| Constructor and Description |
|---|
EMF2PNG() |
| Modifier and Type | Method and Description |
|---|---|
ImageConverter |
createImageConverter(String inExt,
String outExt)
Returns a image converter allowing to convert an image file having
first specified filename extension to an image file having
second specified filename extension.
|
String[] |
getImageConversions()
Returns an array containing pairs of strings specifying
the image conversions supported by converters created by this factory.
|
String |
getParameter(String name)
Returns the value of specified parameter.
|
double |
getResolution() |
void |
setParameter(String name,
String value)
Sets specified parameter.
|
void |
setResolution(double res) |
public void setParameter(String name, String value) throws IllegalArgumentException, NumberFormatException
ImageConverterFactorysetParameter in interface ImageConverterFactoryname - name of parametervalue - value of parameter; use null to unset itIllegalArgumentExceptionNumberFormatExceptionImageConverterFactory.getParameter(java.lang.String)public String getParameter(String name)
ImageConverterFactorygetParameter in interface ImageConverterFactoryname - name of parameternull otherwiseImageConverterFactory.setParameter(java.lang.String, java.lang.String)public void setResolution(double res)
public double getResolution()
public String[] getImageConversions()
ImageConverterFactoryFirst element of the pair is an input file extension in lower-case. Examples: wmf, emf, tif, tiff.
Second element of the pair is an output file extension in lower-case. Examples: svg, png, jpg, jpeg.
getImageConversions in interface ImageConverterFactorypublic ImageConverter createImageConverter(String inExt, String outExt) throws Exception
ImageConverterFactorycreateImageConverter in interface ImageConverterFactoryinExt - the input filename extensionoutExt - the output filename extensionException - if for any reason this method fails