[Lazarus] Metafile support

Felipe Monteiro de Carvalho felipemonteiro.carvalho at gmail.com
Wed Apr 13 17:39:24 CEST 2011

On Wed, Apr 13, 2011 at 6:29 PM, Hans-Peter Diettrich
<DrDiettrich1 at aol.com> wrote:
> My remarks were about importing and interpreting WMF files. If you don't
> intend to support that format, you are free to handle everything as you
> like.

? Maybe we are not understanding each other. Basically you are saying
that to support WMF you need to use some Windows APIs which deal with
it, correct?

Then my answer is that this is neither necessary, nor desirable. You
can read the specification of the WMF file format (or reverse engineer
it) and implement importing it with our own code. And you can render
it to the screen using fpvtocanvas.

For which task exactly would a Windows Metafile API be necessary?

Windows also has APIs for handling .ICO files, but Lazarus doesn't use
them, because they are not desired. Nevertheless Lazarus still manages
to have an excellent support for .ICO icons. The same applies to
Metafiles, just the kind of object changed (raster to vectorial

Felipe Monteiro de Carvalho

More information about the Lazarus mailing list