Sign in to follow this  
Followers 0
Bruce Bowyer-Smyth

WMF (Windows Metafile) file type plugin v1.3.1

12 posts in this topic

WMF (Windows Metafile) file import plugin.

Download WMF Paint.NET Plugin

This plugin interprets the WMF record structure using 100% .NET code and uses WPF as the rendering engine. The main code behind this is the WMF2WPF library and with this plugin Paint.NET now has the ability to open metafiles.

Note this does not turn Paint.NET into a vector editor. WMF files will open just as they do in MS Paint, as a raster image, but will typically look nicer using this plugin due to anti-aliasing. Images must be saved as a different file format like png for example. I have made it so that a metafile will open with two layers, a white background and a second layer with the main image. Hide the background layer to use the image with transparency (if the image has it).

Cheers

Edited by Bruce Bowyer-Smyth
0

Share this post


Link to post
Share on other sites

Rick has released Paint.NET 3.5.3 which includes increased support for open only file plugins such as this one. Be sure to check for updates so that you get the latest version.

0

Share this post


Link to post
Share on other sites

Version 1.0.2 is up now.

- Fix to handle null terminated strings for font names. Mainly appeared in files saved from Visio.

- Support for indexed color bitmaps without an included color palette

0

Share this post


Link to post
Share on other sites

Bruce, this plugin works with all of the WMF files I have tried. Very nice.

The images always comes out the same size, sometimes smaller than I would like.

Since these are vector commands, could they be made to generate the image to fit in the size of the currently open canvas?

PatrickL

0

Share this post


Link to post
Share on other sites

Pleabo, The image size comes from the metafile itself. They typically contain recommended dimensions to place the vector image into.

I have considered displaying an import settings window on file open where you could set the scaling and background behaviour but thought that it may become annoying being shown every time. Maybe when the Paint.NET v4 settings dialog comes along I can do something there.

File type plugins get handed the file that was opened and return a Paint.NET document based off that file. I don't think I can access any other application state like the currently open canvas.

0

Share this post


Link to post
Share on other sites

Version 1.1.1 has been released

- Added support for vertical and horizontal text alignment options.

- Added support for the long awaited image and text clipping.

- Fix for default font color.

0

Share this post


Link to post
Share on other sites

Works perfectly! Even with wmf files created by a piece bespoke software that my friend wrote... it's not the best wmf implementation and other programs sometimes have trouble with these files... not your plugin!

Thanks :mrgreen:

0

Share this post


Link to post
Share on other sites

Version 1.3.1 has been released
- Added code page support for non-latin text

- Added clipping support for Polygon, Polyline, and PolyPolygon shapes.

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0