org.openoffice.da.comp.w2lcommon.filter

Class GraphicConverterImpl2

public class GraphicConverterImpl2 extends Object implements GraphicConverter

A GraphicConverter implementation which uses a hidden Draw document to store the graphic, providing more control over the image than the simple GraphicProvider implementation.
Constructor Summary
GraphicConverterImpl2(XComponentContext xComponentContext)
Method Summary
byte[]convert(byte[] source, String sSourceMime, String sTargetMime)
protected voidrefreshDocument(XComponent document)
booleansupportsConversion(String sSourceMime, String sTargetMime, boolean bCrop, boolean bResize)

Constructor Detail

GraphicConverterImpl2

public GraphicConverterImpl2(XComponentContext xComponentContext)

Method Detail

convert

public byte[] convert(byte[] source, String sSourceMime, String sTargetMime)

refreshDocument

protected void refreshDocument(XComponent document)

supportsConversion

public boolean supportsConversion(String sSourceMime, String sTargetMime, boolean bCrop, boolean bResize)