GetWinMetaFileBits (gdi32)
Last changed: -86.57.158.130

.
Summary

C# Signature:

[DllImport("gdi32.dll")]
static extern uint GetWinMetaFileBits(IntPtr hemf, uint cbBuffer,
   [Out] IntPtr lpbBuffer, MappingMode fnMapMode, IntPtr hdcRef);

User-Defined Types:

None.

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

byte[] byteArray = new byte[nBytes];

var gch = GCHandle.Alloc(byteArray, GCHandleType.Pinned);

IntPtr address = gch.AddrOfPinnedObject();

nBytes = GetWinMetaFileBits(hEMF, nBytes, address, MappingModes.ANISOTROPIC, hDC);

gch.Free();

Alternative Managed API:

Do you know one? Please contribute it!

Documentation