Machine Vision Camera SDK (C) Developer Guide
}
//Destroy handle and release resource
nRet = MV_CC_DestroyHandle(m_handle);
if (MV_OK != nRet)
{
printf("error: DestroyHandle fail [%x]\n", nRet);
return;
}
}
4.8.14 MV_CC_SaveImage
Convert original image data into picture format and saves in specified memory.
API Definition
int MV_CC_SaveImage(
MV_SAVE_IMAGE_PARAM
);
*pSaveParam
Parameters
pSaveParam
[IN][OUT] Picture data input and output parameter
Return Value
Return MV_OK(0) on success, and return Error Code on failure.
Remarks
Through this API, convert the original images acquired by device into JPEG or BMP format and save
in specified memory, and you can save the converted data as picture file. No sequence is required
for calling this interface, original image data can be directly converted. First call
MV_CC_GetOneFrame or MV_CC_RegisterImageCallBack to set callback function, and get one
frame of image data, and then convert into other formats through this interface.
Example
The following sample code is for reference only.
#include "MvCameraControl.h"
void main()
{
int nRet = -1;
void* m_handle = NULL;
//Enumerate all devices corresponding to specified transport protocol
within subnet
161
    "