© 2013 Thorlabs GmbH410
DCx Cameras
4.5.25 is_SaveImageMemEx
Syntax
INT is_SaveImageMemEx (HIDS hCam, const IS_CHAR* File, char* pcMem,
int nID, INT fileFormat, INT Param)
Description
Attention
This function is obsolete and should not be used anymore. We recommend to use the is_ImageFile()
function instead (see also Obsolete functions ).
is_SaveImageMemEx() saves an image in bitmap (*.BMP), JPEG (*.JPG), or PNG format to a file. The images
are read out from the specified image memory. The bitmap is stored with the color depth that was used when
allocating the image memory (in DIB mode) or that was set for the current color mode (in Direct3D mode). JPEG
files are always saved with a color depth of 8 or 24 bits.
Notes
You can save images with a bit depth of more than 8 bit in the PNG format. 12 bit formats are converted into 16
bit.
In Direct3D mode, overlay data are not saved.
Input parameters
Pointer to a string containing the BMP filename. You can either pass
an absolute or a relative path.
If NULL is passed, the "Save as" dialog will be displayed..
Pointer to the image memory
Specifies the output format of the file.
When you use IS_IMG_JPG or IS_IMG_PNG to specify the file
format, you can set the quality by specifying a value between 1 and
100 for Param. If Param=0, the system uses the default quality
(75).
If you use IS_IMG_BMP, Param does not take effect.
264
379