[DUG] Changing the colour of elements inside a metafile

Alister Christie alister at SalesPartner.co.nz
Fri Nov 25 12:34:43 NZDT 2005


I would have thought that this would be fairly easy but it doesn't seem 
to be.  I am wanting to write a procedure that looks something like

procedure ChangePenColorOfMetaFile(mf : TMetaFile; acolor: TColor);

Which changes all the pen colours of the elements inside the metafile. 
I've got as far as knowing that I need to use EnumEnhMetaFile with a 
callback function, but the magic code inside the callback function 
currently escapes me.

Has anyone done this before?

-- 
Alister Christie
Computers for People
Ph: 04 471 1849 Fax: 04 471 1266
http://www.salespartner.co.nz
PO Box 13085
Johnsonville
Wellington


More information about the Delphi mailing list