Главная страница | назад

Article #16655: rotating a Metafile

 Question and Answer Database

FAQ1655D.txt   rotating a Metafile
Category   :Windows API
Platform    :All
Product    :All 32 bit  

How do I rotate a Metafile?

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.

7/16/98 4:31:28 PM

Last Modified: 01-SEP-99