standup.symbol
Class SymbolRendererWMF
java.lang.Object
standup.symbol.SymbolRendererWMF
- All Implemented Interfaces:
- SymbolRenderer
public class SymbolRendererWMF
- extends Object
- implements SymbolRenderer
A utility class that takes a Windows Metafile (WMF) file and renders it to a
bitmap. Used for loading Mayer-Johnson PCS symbol files.
- Author:
- Ruli Manurung
Method Summary |
BufferedImage |
renderSymbol(InputStream fis)
Renders the symbol specified in the given FileInputStream in its
recommended/default dimension and returns the resulting image as a
BufferedImage . |
BufferedImage |
renderSymbol(InputStream fis,
int height)
Renders the symbol specified in the given FileInputStream ,
scaled to have the given height while maintaining the aspect ratio, and
returns the resulting image as a BufferedImage . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SymbolRendererWMF
public SymbolRendererWMF()
renderSymbol
public BufferedImage renderSymbol(InputStream fis)
- Description copied from interface:
SymbolRenderer
- Renders the symbol specified in the given
FileInputStream
in its
recommended/default dimension and returns the resulting image as a
BufferedImage
.
- Specified by:
renderSymbol
in interface SymbolRenderer
- Parameters:
fis
- the FileInputStream
containing the symbol
- Returns:
- the rendered symbol bitmap
renderSymbol
public BufferedImage renderSymbol(InputStream fis,
int height)
- Description copied from interface:
SymbolRenderer
- Renders the symbol specified in the given
FileInputStream
,
scaled to have the given height while maintaining the aspect ratio, and
returns the resulting image as a BufferedImage
.
- Specified by:
renderSymbol
in interface SymbolRenderer
- Parameters:
fis
- the FileInputStream
containing the symbol
- Returns:
- the rendered symbol bitmap with the given height