L_ConvertToWMF

#include "l_bitmap.h"

HMETAFILE EXT_FUNCTION L_ConvertToWMF(pBitmap)

pBITMAPHANDLE pBitmap;

/* pointer to a bitmap */

Converts a LEAD Technologies bitmap into a Windows metafile (WMF). When this function is completed, there are two copies of the drawing in memory: the WMF and the original LEAD vector. Freeing one will not affect the other.

Parameter

Description

pBitmap

Pointer to the bitmap handle referencing the bitmap to copy.

Returns

This function will return a handle to a metafile.

Comments

This function allocates a metafile bitmap and copies the LEAD bitmap to the metafile.

When you no longer need the metafile, you can free it using the Windows DeleteMetaFile function.

Required DLLs and Libraries

LTKRN

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.

Platforms

Windows 95 / 98 / Me, Windows 2000 / XP.

See Also

Functions:

L_ChangeFromEMF, L_ChangeFromWMF,

 

L_ChangeToEMF, L_ChangeToWMF,

 

L_ConvertFromWMF, L_ConvertFromEMF,

 

L_ConvertToEMF

Example

For an example, refer to L_ConvertFromWMF.