The Enhanced MetaFile format (EMF) is the native vector graphics file
format on Windows. Qt is a cross-platform application development framework,
widely used for the development of GUI programs. Although it provides tools for almost every aspect of software development,
Qt doesn't include a straightforward solution for the export of 2D graphics to the EMF/WMF image formats. EmfEngine covers this lack and
enables Qt based applications to easily export graphics to the Enhanced Metafile format or to the Windows Metafile (WMF) format.
EmfEngine is used by companies all over the world >>
Using EmfEngine is straightforward, as you may see from the code example bellow:
The target distribution platform of EmfEngine is Windows, since it uses the
GDI+ API as backend.
EmfEngine also provides a GDI backend
(which has some limitations: no antialiasing, no support for transparent brushes etc...).
If the GDI+ backend is disabled, EmfEngine can be compiled on Unix-like systems (Linux, Mac OS X), but
on these systems it relies on the presence of the libEMF library.
EmfEngine is available under two licenses: an open-source licence (GPL v. 3.0)
and a commercial one. Please take a look at the Licensing section for more details.
void MyClass::exportEMF(const QString& fileName)
EmfPaintDevice emf(QSize(500, 400), fileName);
// ... perform your painting operations here ...