Syntax
INT is_SaveImageMem (HIDS hf, char* File, char* pcMem, int nID)
Description
Saves an image in bitmap format (BMP) to a file. The images are read from the image memory.
The bitmap is saved with an 8, 15, 16, 24 or 32 bit colour depth, as was allocated in the image memory. Some image processing programs do not support all 15 bit, 16 bit and 32 bit bitmaps and therefore will be unable to load the images.
|
Overlay data is not saved. |
To use the current setting of the image height and not to use the image height of the allocated memory it is possible to combine USE_ACTUAL_IMAGE_SIZE and nID by logical OR.
Parameters
hf |
Frame grabber handle |
File |
Name of the BMP image file NULL = "Save as" dialog box is opened |
pcMem |
Pointer to image memory |
nID |
ID of image memory |
Return value
IS_SUCCESS, IS_NO_SUCCESS