#include "BIDIB.H"
BOOL CALLBACK SaveBitmapIntoMetaFile( HDC hDC,
HBITMAP hBitmap,
LPTSTR lpszFileName)
Description
Save the device dependent bitmap in the metafile.
Parameters
|
HDC |
hDC; |
Destination device context. |
|
HBITMAP |
hBitmap; |
Bitmap to be stored. |
|
LPTSTR |
lpszFileName; |
Metafile name. |
Additional Information
This example shows how to use the dll when loading statically including the header file. Otherwise if the dll is loaded dynamically, for further information read the “About the difference of static and dynamic library loading” section of the manual.
Return values
TRUE - successful.
FALSE - failed.
Programming notes
None.
Requirements
Header : Declared in BiDIB.h; include BiDIB.h.
Library : Use BiDIB.lib.
DLLs : BiDIB.dll.
Code example
#include "BIDIB.H"
// save bitmap in formats
switch(nFormatID) {
...
case METAFILE_FORMAT:
hDC = GetDC(hWnd);
return SaveMetaFileIntoBitmap(hDC, hCurrentBitmap, szFileName);
ReleaseDC(hWnd, hDC);
break;
...