Board index » delphi » Metafile Help

Metafile Help

How can I create and draw onto a TMetafile without using the GDI shite?

Thanks in advance.

Dob.

 

Re:Metafile Help


Quote
Roy Crossfield <r...@qmap.demon.co.uk> wrote:
>How can I create and draw onto a TMetafile without using the GDI shite?
>Thanks in advance.
>Dob.

Since the "GDI shite" is exactly what is stored IN a metafile, you
can't.

David Block
CoStar Corporation

Re:Metafile Help


Quote
> Since the "GDI shite" is exactly what is stored IN a metafile, you
> can't.

> David Block
> CoStar Corporation

Since a canvas is an encapsulation of the "GDI shite" is there anyway
I can draw onto a canvas and then give the handle of the canvas to a
TMetafile?  Thereby being able to use Delphis friendly graphics commands
to create a tMetaFile at run-time.

Also, using the GDI I'm having problems creating a metafile in Delphi at
runtime that can be recognised as a metafile in Delphi on the loadFromStream
or loadFromFile methods of tMetaFile, though I can get other applications to
recognise it as a metaFile via the clipboard or opening the metaFile in another
application.

Is this an unfinished bit of Delphi? i.e. tMetafile.canvas

Thanks anyway

Dob

Other Threads