The GetEnhMetaFileHeader function retrieves the record containing the header for the specified enhanced-format metafile.
UINT GetEnhMetaFileHeader(
HENHMETAFILE hemf, |
// handle of enhanced metafile |
UINT cbBuffer, |
// size of buffer, in bytes |
LPENHMETAHEADER lpemh |
// address of buffer to receive data |
); |
If the function succeeds and the structure pointer is NULL, the return value is the size of the record that contains the header; if the structure pointer is a valid pointer, the return value is the number of bytes copied. Otherwise, it is zero. To get extended error information, call GetLastError.
An enhanced-metafile header contains such information as the metafile’s size, in bytes; the dimensions of the picture stored in the metafile; the number of records stored in the metafile; the offset to the optional text description; the size of the optional palette, and the resolution of the device on which the picture was created.
The record that contains the enhanced-metafile header is always the first record in the metafile.
Windows 95: The maximum length of the description string for an enhanced metafile is 16,384 bytes.
ENHMETAHEADER, PlayEnhMetaFile
file: /Techref/os/win/api/win32/func/src/f31_8.htm, 3KB, , updated: 2000/4/7 11:19, local time: 2024/12/29 01:11,
18.217.122.223:LOG IN
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://massmind.org/Techref/os/win/api/win32/func/src/f31_8.htm"> GetEnhMetaFileHeader</A> |
Did you find what you needed? |
Welcome to massmind.org! |
Welcome to massmind.org! |
.