The GetEnhMetaFileBits function retrieves the contents of the specified enhanced-format metafile and copies them into a buffer.
UINT GetEnhMetaFileBits(
HENHMETAFILE hemf, |
// handle of metafile |
UINT cbBuffer, |
// size of data buffer, in bytes |
LPBYTE lpbBuffer |
// address of data buffer |
); |
If the function succeeds and the buffer pointer is NULL, the return value is the size of the enhanced metafile, in bytes.
If the function succeeds and the buffer pointer is a valid pointer, the return value is the number of bytes copied to the buffer.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
After the enhanced-metafile bits are retrieved, they can be used to create a memory-based metafile by calling the SetEnhMetaFileBits function.
The GetEnhMetaFileBits function does not invalidate the enhanced-metafile handle. The application must call the DeleteEnhMetaFile function to delete the handle when it is no longer needed.
The metafile contents retrieved by this function are in the enhanced format. To retrieve the metafile contents in the Windows format, use the GetWinMetaFileBits function.
DeleteEnhMetaFile, GetWinMetaFileBits, SetEnhMetaFileBits
file: /Techref/os/win/api/win32/func/src/f31_6.htm, 3KB, , updated: 2000/4/7 12:19, local time: 2024/8/24 17:50,
52.14.192.36: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://piclist.com/tecHREF/os/win/api/win32/func/src/f31_6.htm"> GetEnhMetaFileBits</A> |
Did you find what you needed? |
![]() o List host: MIT, Site host massmind.org, Top posters @none found - Page Editors: James Newton, David Cary, and YOU! * Roman Black of Black Robotics donates from sales of Linistep stepper controller kits. * Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters. * Monthly Subscribers: Gregg Rew. on-going support is MOST appreciated! * Contributors: Richard Seriani, Sr. |
Welcome to piclist.com! |
.