Another way to make larges metafiles emf/wmf with Delphi


METAFILE.ZIP

When that I have wanted to create in imphpgl2.exe a translation of a plotter file HPGL (*.plt) in (*.WMF or *.EMF) files, I have used first the example Delphi of Tmetafile.create that consists to open the canvas, to draw the element, to close the canvas and so on.

This method comes rapidly out of the GDI (Graphics Device Interface) ressouces of Windows and is not usable for large files.

I have then had the idea to record commands in a temporary file (meta.txt) and then use this file to create the metafile in an alone passes, what increases the rapidity of processing and allows to realize very large EMF/WMF files.

The metafile.zip contains two program examples under Delphi(3) with their sources :

* EXMETA.EXE in the directory TEST1EMF that uses the Delphi method.
* EXMETA2.EXE in the rdirectory TEST2EMF that uses the meta.txt method.

These programs are frees. You can there watch as how to trace a text in diagonal.



Download metafile.zip(261 ko)


Top
Home Main