See: Description
| Class | Description |
|---|---|
| AbstractWMFPainter |
This class provides generic methods that must be used by a particular WMFPainter.
|
| AbstractWMFReader |
This class provides a general framework to read WMF Metafiles.
|
| GdiObject |
Represents GDI Objects encountred in WMF Files.
|
| MetaRecord |
This is used to keep data while processing WMF-files.
|
| MetaRecord.ByteRecord |
A record that contain byte arrays elements.
|
| MetaRecord.StringRecord | |
| TextureFactory |
This class generate Paints from WMF hatch definitions.
|
| WMFFont |
Represent a WMF Font, encountered in a Metafile.
|
| WMFHeaderProperties |
This class holds simple properties about a WMF Metafile.
|
| WMFPainter |
Core class for rendering the WMF image.
|
| WMFRecordStore |
Reads a WMF file, including an Aldus Placable Metafile Header.
|
| WMFUtilities |
This class holds various utilies for importing WMF files that can be used either for
AbstractWMFReaders and
AbstractWMFPainters |
org.apache.batik.transcoder.wmf.tosvg.WMFTranscoder class. The
WMFHeaderProperties class can be
used to get size informations from a WMF Metafile without converting it.
TranscoderInput input = new TranscoderInput(inputFile.toURI().toString());
OutputStream stream = new FileOutputStream(outputFile);
TranscoderOutput output = new TranscoderOutput(stream);
WMFTranscoder transcoder = new WMFTranscoder();
transcoder.transcode(input,output);
TranscoderInput input = new TranscoderInput(inputFile.toURI().toString());
OutputStream stream = new FileOutputStream(outputFile);
TranscoderOutput output = new TranscoderOutput(stream);
WMFTranscoder transcoder = new WMFTranscoder();
transcoder.addTranscodingHint(WMFTranscoder.KEY_WIDTH, new Float(outputWidth));
transcoder.transcode(input,output);
WMFHeaderProperties prop = new WMFHeaderProperties(inputFile);
TranscoderInput input = new TranscoderInput(inputFile.toURI().toString());
OutputStream stream = new FileOutputStream(outputFile);
TranscoderOutput output = new TranscoderOutput(stream);
WMFTranscoder transcoder = new WMFTranscoder();
transcoder.addTranscodingHint(WMFTranscoder.KEY_INPUT_WIDTH, new Integer(prop.getWidthBoundsPixels()));
transcoder.addTranscodingHint(WMFTranscoder.KEY_INPUT_HEIGHT, new Integer(prop.getHeightBoundsPixels()));
transcoder.addTranscodingHint(WMFTranscoder.KEY_XOFFSET, new Integer(prop.getXOffset()));
transcoder.addTranscodingHint(WMFTranscoder.KEY_YOFFSET, new Integer(prop.getYOffset()));
transcoder.transcode(input,output);