Desktop Functions:

   Smart Device Functions:

Show Recent Changes
Subscribe (RSS)
Misc. Pages
Helpful Tools
Suggested Reading
Website TODO List
Support Forum
Download Visual Studio Add-In

Terms of Use
Privacy Policy
gdipemftowmfbits (gdiplus)
Converts an Enhanced Meta File to a Windows Meta File.

C# Signature:

    /// <summary>
    /// Use the EmfToWmfBits function in the GDI+ specification to convert a
    /// Enhanced Metafile to a Windows Metafile
    /// </summary>
    /// <param name="_hEmf">
    /// A handle to the Enhanced Metafile to be converted
    /// </param>
    /// <param name="_bufferSize">
    /// The size of the buffer used to store the Windows Metafile bits returned
    /// </param>
    /// <param name="_buffer">
    /// An array of bytes used to hold the Windows Metafile bits returned
    /// </param>
    /// <param name="_mappingMode">
    /// The mapping mode of the image.  This control uses MM_ANISOTROPIC.
    /// </param>
    /// <param name="_flags">
    /// Flags used to specify the format of the Windows Metafile returned
    /// </param>
[DllImport("gdiplus.dll", SetLastError=true)]
static extern IntPtr GdipEmfToWmfBits(HandleRef hEmf, uint uBufferSize,
    byte[] bBuffer, int iMappingMode, EmfToWmfBitsFlags flags);

VB Signature:

private declare function GdipEmfToWmfBits lib "gdiplus.dll"(ByVal hEmf as IntPtr, _
    ByVal bufferSize as UInteger, ByVal buffer() as byte, ByVal mappingMode as Integer, _
    ByVal flags as EmfToWmfBitsFlags) as UInteger

User-Defined Types:


Alternative Managed API:

Do you know one? Please contribute it!



Tips & Tricks:

Please add some!

Sample Code:

Please add some!


Please edit this page!

Do you have...

  • helpful tips or sample code to share for using this API in managed code?
  • corrections to the existing content?
  • variations of the signature you want to share?
  • additional languages you want to include?

Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more).

Access directly from VS:
Terms of Use
Edit This Page
Find References
Show Printable Version