GdipEmfToWmfBits (gdiplus)
Last changed: -213.168.83.122

.
Summary
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:

None.

Alternative Managed API:

Do you know one? Please contribute it!

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Documentation