🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #17004

Re: Metafile parsing

#17004
From: Adam Versteegen
Date: Sun, 13 Apr 2003 23:56
23 lines
1527 bytes
Ron Sawyer wrote:

> I am looking for sample code to parse window's metafiles.  I need to
> pull out each record to be able to convert it to another format.  Does
> anyone know of a way to do this?


Hello Ron,

Take a loot at:

http://www.efg2.com/Lab/Library/Delphi/Graphics/FreddyDarsonvilleMetafileRot
ation.TXT

Its in delphi and shows a method (or the start of) for rotating metafiles.
In order to properly rotate them you need to enumerate each of the records,
so you will see how to do what you need.

The main function you will need to come to terms with is EnumEnhMetaFile().

Let us know if you have any problems.

Vesty.
Technical Details
Message-ID: <3e99f91c@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3E99E8E7.9023C1E0@aol.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,6812a614b7c2d50b
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-04-13 17:01:44 PST
From: "Adam Versteegen" <no@email.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3E99E8E7.9023C1E0@aol.com>
Subject: Re: Metafile parsing
Date: Mon, 14 Apr 2003 09:56:02 +1000
Lines: 25
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 202.44.163.45
Message-ID: <3e99f91c@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1050278172 202.44.163.45 (13 Apr 2003 16:56:12 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail