DCx Cameras
4.5.25 is_SaveImageMemEx
USB 2.0
USB 3.0
Syntax
INT is_SaveImageMemEx (HIDS hCam, const IS_CHAR* File, char* pcMem,
Description
Attention
This function is obsolete and should not be used anymore. We recommend to use the
function instead (see also
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
hCam
File
pcMem
nID
fileFormat
IS_IMG_BMP
IS_IMG_JPG
IS_IMG_PNG
Param
410
USB 2.0
USB 3.0
int nID, INT fileFormat, INT Param)
Obsolete functions
).
379
Camera handle
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
Image memory ID
Specifies the output format of the file.
Bitmap format
JPEG format
PNG format
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.
is_ImageFile()
© 2013 Thorlabs GmbH
264