org.openoffice.da.comp.w2lcommon.filter

Class GraphicConverterImpl1

public class GraphicConverterImpl1 extends Object implements GraphicConverter

A GraphicConverter implementation which uses the GraphicProvider service to convert the graphic. This service does only support simple format conversion using the "internal" graphics filters in Draw. Advanced features like pdf, crop and resize thus cannot be handled.
Constructor Summary
GraphicConverterImpl1(XComponentContext xComponentContext)
Method Summary
byte[]convert(byte[] source, String sSourceMime, String sTargetMime)
booleansupportsConversion(String sSourceMime, String sTargetMime, boolean bCrop, boolean bResize)

Constructor Detail

GraphicConverterImpl1

public GraphicConverterImpl1(XComponentContext xComponentContext)

Method Detail

convert

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

supportsConversion

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