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

Article #17594: How do I rotate a Metafile?

 Question and Answer Database

FAQ2594C.txt   How do I rotate a Metafile?
Category   :Windows API
Platform    :All
Product    :C++Builder  3.x

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 replaced
with paths under Win32.  Fonts should be remapped to TrueType fonts
(if necessary) since most non-TrueType fonts do not rotate.

7/2/98 10:32:32 AM

Last Modified: 01-SEP-99