public class GraphicConverterImpl2 extends java.lang.Object implements GraphicConverter
| Constructor and Description |
|---|
GraphicConverterImpl2(XComponentContext xComponentContext) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
convert(byte[] source,
java.lang.String sSourceMime,
java.lang.String sTargetMime)
Convert a graphics file from one format to another
|
protected void |
refreshDocument(XComponent document) |
boolean |
supportsConversion(java.lang.String sSourceMime,
java.lang.String sTargetMime,
boolean bCrop,
boolean bResize)
Check whether a certain conversion is supported by the converter
|
public GraphicConverterImpl2(XComponentContext xComponentContext)
public boolean supportsConversion(java.lang.String sSourceMime,
java.lang.String sTargetMime,
boolean bCrop,
boolean bResize)
GraphicConvertersupportsConversion in interface GraphicConvertersSourceMime - a string containing the source Mime typesTargetMime - a string containing the target Mime typebCrop - true if the target graphic should be croppedbResize - true if the target graphic should be resized
(the last two parameters are for future use)public byte[] convert(byte[] source,
java.lang.String sSourceMime,
java.lang.String sTargetMime)
GraphicConverterconvert in interface GraphicConvertersource - a byte array containing the source graphicsSourceMime - a string containing the Mime type of the sourcesTargetMime - a string containing the desired Mime type of the targetprotected void refreshDocument(XComponent document)