WMF2Applet example - use this if your browser is really able to JDK 1.2 applets (otherwise you will see a gray rectangle only).
Because the WMF2Viewer package uses JDK 1.2 which is almost not supported in the current major browsers there is the posibility to use the Java PlugIn from Sun, which works for certian browsers and platforms:
WMF2Applet example with Java PlugIn
For those who are impatient or unable to see either the applet or the Plug In example here is a screenshot of the applet:
and of the application (with the german locale):
Some of the GDI commands are very Windows specific and can not be
rendered with the Java 2D API, which is the basis for this viewer. Therefore
very few of the WMFs can not be displayed properly.
The following GDI commands are not supported:
01. Apr. 2002
28. Sept. 2001
19. Sept. 2001
31. Jan. 2000
28. Sept. 1999
12. Sept. 1999
WMF2Viewer.zip contains all necessary class files, resources, the images (in one single JAR-file) and the examples.
The license for the WMFViewer package for commercial use together with the JavaDoc generated documentation can be purchased via ShareIt. In addition there is a version which includes the full source code. which can be purchased via ShareIt as well.
<APPLET code=WMF2Applet.class width=550 height=400 archive=WMF2Viewer.jar> <PARAM name="WMFsource" value="MFCompanion.wmf WMFWriterDemo.wmf DNAmend.wmf ColorGradient.wmf GasChromatogram.wmf SpatioTemporal.wmf VeryLarge.wmf Bitmap-1Bit.bmp Bitmap-4Bit.bmp Bitmap-8Bit.bmp Bitmap-24Bit.bmp Bitmap-RLE4.bmp Bitmap-RLE8.bmp"> <PARAM name="wmfbackground" value="255 255 0"> <PARAM name="wmfisotropic" value="true"> <PARAM name="wmfusersize" value="400 300"> <PARAM name="toolbar" value="true"> <PARAM name="progressbar" value="true"> <PARAM name="showbutton" value="true"> <PARAM name="Locale" value="en"> <PARAM name="PLAF" value="system"> <PARAM name="zooms" value="0.25 0.5 0.75 1.0 1.5 2.0 3.0 4.0"> <PARAM name="zoomindex" value="4"> Sorry, your browser does not support Java. </APPLET>The applet is shown in the size specified in the <APPLET>-tag. The Windows Metafile can be zoomed and panned. Its default size is the size of the window in which it is displayed.
You can supply the following parameters (the defaults are taken if the
parameter is not supplied):
Name | Value | Default |
WMFbackground | the background of the WMF | applet background |
WMFsource | a list of the URLs of the WMFs you want to show each separated by a space | WMF2Viewer-logo.wmf |
WMFusersize | the user size of the WMF | 500 500 |
WMFisotropic | preserve the original aspect ratio | false |
zooms | the list of the available zoom factors (1.0 means 100%) | 0.25 0.5 0.75 1.0 1.5 2.0 3.0 4.0 |
zoomindex | the index of the zoom factor in zooms to start with | 1 |
toolbar | show the toolbar | true |
progressbar | show the status (progress) bar | true |
showbutton | whether to supply the button for showing the Windows Metafile in a separate frame window or not | false |
locale | the two character code of the country to use for displaying messages etc. | the default country |
PLAF | the pluggable look and feel to use, either:
system - the system PLAF, or java - the Java PLAF, or the PLAF itself |
java |
javaw -jar WMF2Viewer.jar wmfile