int SaveBitmapToBMPFile (int bitmapID, char filename[]);
Saves a bitmap image to a .bmp file. This function returns an error if you attempt to save a transparent bitmap or a bitmap that originated from a metafile.
| Input | ||
| Name | Type | Description |
| bitmapID | integer | ID of the bitmap object that contains the image. Obtain the ID from NewBitmap, GetBitmapFromFile, GetCtrlBitmap, ClipboardGetBitmap, GetCtrlDisplayBitmap, GetPanelDisplayBitmap, GetScaledPanelDisplayBitmap, GetScaledCtrlDisplayBitmap, or DuplicateBitmap. |
| filename | string | Pathname of the file in which to save the image. You can use a complete pathname or a simple filename. If the name is a simple filename, the file is saved in the directory that contains the executable. |
| Name | Type | Description | ||||
| status | integer | Return value indicating whether the function was successful. A negative number indicates that an error occurred.
|