imaq1394SaveBuffer

NI-IMAQ for IEEE 1394 Cameras Function

imaq1394SaveBuffer

Format

rval = imaq1394SaveBuffer (SESSION_ID sessionId, void *buffer, char* filename);

Purpose

Saves a single image to disk. This function takes a buffer as an input.

Parameters

Parameter Type Description
sessionId SESSION_ID A valid Session ID, which you can obtain using imaq1394CameraOpen2.
buffer void * The buffer that contains the image.
filename char * The filename to which you want to save the buffer. Supported formats are BMP, PNG, and JPG.

Return Value

On success, this function returns IMG1394_ERR_GOOD. On failure, this function returns an error code. You can obtain a more detailed error message with imaq1394ShowError.