Is_Imagefile - THORLABS DCU223x Operation Manual And Sdk

Cdd and cmos cameras
Hide thumbs Also See for DCU223x:
Table of Contents

Advertisement

DCx Cameras

4.3.58 is_ImageFile

USB 2.0
USB 3.0
Syntax
INT is_ImageFile (HIDS hCam, UINT nCommand, void* pParam, UINT cbSizeOfParam)
Description
is_ImageFile() loads and save an image from or to a file. The image must be BMP, JPEG or PNG format. The
image is loaded into the active image memory or read-out from the active image memory.
Note
When saving an image
the image acquisition might not be completed at the time of saving.
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). 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. JPEG files are always saved with a color depth of 8 or 24
bits.
Note
In Direct3D or OpenGL mode, overlay data is not saved.
The nCommand input parameter is used to select the function mode. The pParam input parameter depends on the
selected function mode. If you select functions for setting or returning a value, pParam contains a pointer to a
variable of the UINT type. The size of the memory area to which pParam refers is specified in the
cbSizeOfParam input parameter.
Note
The following functions are obsolete by the is_ImageFile() function:
is_LoadImage()
is_LoadImageMem()
is_SaveImage()
is_SaveImageMem()
is_SaveImageEx()
is_SaveImageMemEx()
See also:
Obsolete functions
Input parameters
hCam
nCommand
IS_IMAGE_FILE_CMD_LOAD
IS_IMAGE_FILE_CMD_SAVE
pParam
cbSizeOfParam
264
USB 2.0
USB 3.0
is_FreezeVideo()
223
379
sjould not be called with the IS_DONT_WAIT parameter, because
Camera handle
Loads an image file (bmp, jpg, png)
The function can be used with UNICODE file names.
Saves an image file (bmp, jpg, png)
The function can be used with UNICODE file names.
Pointer to a function parameter, whose function depends
on nCommand.
Size (in bytes) of the memory area to which pParam
refers.
(Example 1
)
266
(Example 2
)
266
© 2013 Thorlabs GmbH

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dcu224xDcc1240xDcc1545mDcc1645c

Table of Contents