RE: Metafile EXTTEXTOUT record structure?
- From: v-terryf@xxxxxxxxxxxxxxxxxxxx ("Terry Fei[MSFT]")
- Date: Thu, 27 Oct 2005 09:13:43 GMT
Hi Dave,
Welcome to NewsGroup!
Based on my understanding, you think that EMREXTTEXTOUT structure is not
complete and lacks some necessary information (for example:bounding
rectangle) . If I misunderstood you, please feel free to let know.
The EMREXTTEXTOUTA and EMREXTTEXTOUTW structures contain members for the
ExtTextOut, TextOut, or DrawText enhanced metafile records. If we looked
into this structure, we will find it provides sufficient information to
make metafile drawn. I will list all relevant member of this structure as
follows,
typedef struct tagEMREXTTEXTOUTA
{
EMR emr;
RECTL rclBounds; // Inclusive-inclusive bounds in device
units
DWORD iGraphicsMode; // Current graphics mode
FLOAT exScale; // X and Y scales from Page units to .01mm
units
FLOAT eyScale; // if graphics mode is GM_COMPATIBLE.
EMRTEXT emrtext; // This is followed by the string and
spacing
// array
} EMREXTTEXTOUTA, *PEMREXTTEXTOUTA,
EMREXTTEXTOUTW, *PEMREXTTEXTOUTW;
// Base record type for the enhanced metafile.
typedef struct tagEMR
{
DWORD iType; // Enhanced metafile record type
DWORD nSize; // Length of the record in bytes.
// This must be a multiple of 4.
} EMR, *PEMR;
typedef struct _RECTL /* rcl */
{
LONG left;
LONG top;
LONG right;
LONG bottom;
} RECTL, *PRECTL, *LPRECTL;
typedef struct tagEMRTEXT
{
POINTL ptlReference;
DWORD nChars;
DWORD offString; // Offset to the string
DWORD fOptions;
RECTL rcl;
DWORD offDx; // Offset to the inter-character spacing
array.
// This is always given.
} EMRTEXT, *PEMRTEXT;
According to the definition of EMREXTTEXTOUT, we will find bounding
rectangle is included in EMRTEXT structure (member: RECTL rcl) and an
EMRTEXT member in EMREXTTEXTOUT structure (member: EMRTEXT emrtext). So I
think there is sufficient information in EMREXTTEXTOUT structure to render
ExtTextOut, TextOut, or DrawText metafile records.
If you have any questions or concerns, please don't hesitate to let me
know. Thanks! : )
Best Regards,
Terry Fei[MSFT]
Microsoft Community Support
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
.
- Prev by Date: Re: How to "TINT" bitmap?
- Next by Date: RE: Listing of known metafile ESCAPE commands?
- Previous by thread: Re: How to "TINT" bitmap?
- Next by thread: RE: Metafile EXTTEXTOUT record structure?
- Index(es):