int SaveBitmapToFile (const char path[], int bitmapID);
Saves a bitmap to file.
| Input | ||||
| Name | Type | Description | ||
| path | const char [] | The pathname of a file. If it is not an absolute pathname, the pathname is relative to the current working directory. | ||
| bitmapID | integer | The ID of the bitmap containing the image. Must be a value obtained from one of the following functions: NewBitmapEx GetBitmapFromFile GetCtrlBitmap ClipboardGetBitmap GetCtrlDisplayBitmap GetPanelDisplayBitmap GetScaledPanelDisplayBitmap GetScaledCtrlDisplayBitmap DuplicateBitmap
|
| Name | Type | Description | ||
| status | integer | Returns 0 if the function succeeded or a negative error code if the function failed. The possible negative error codes are:
You can call the GetGeneralErrorString function in the toolbox.fp instrument driver to obtain a description of any of these error codes. |