- - * - WhiteUnicorn - * - -




* #WhiteUnicorn/ StartPage/ Documentation/DelphiFAQ >


Frequently Asked Questions

rotating a Metafile

Question:

How do I rotate a Metafile?

Answer:

You will need to enumerate though the metafile records using the
Windows API functions EnumMetaFile() and EnumEnhMetaFile(). As each
Metafile object is returned, you will need to rotate the coordinates
of each object. Rectangles will need to be converted to polygons, and
ellipses will need to be rendered to polylines under Win16 or replaced
with paths under Win32.  Fonts should be remapped to TrueType fonts
(if necessary) since most non-TrueType fonts do not rotate.



* #WhiteUnicorn/ StartPage/ Documentation/DelphiFAQ >



- - * - Anastasija aka WhiteUnicorn - * - - LJLiveJournal
PFPhotoFile