From 11:00 PM CST Friday, Apr 11th - 1:30 PM CST Saturday, Apr 12th, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

NI-IMAQ C Function Reference

Content Type
Programming Language
Current manual

imgSessionClearBuffer

imgSessionClearBuffer

Format

rval = imgSessionClearBuffer(SESSION_ID sid, uInt32 buf_num, uInt8 pixel_value)

Purpose

Sets buffer image data to the specified pixel value.

Parameters

Name Type Direction Description
sid SESSION_ID input Session ID
buf_num uInt32 input Element number of the buffer to clear
pixel_value uInt8 input Pixel value to set data to
rval Int32 output Status

Parameter Discussion

sid is a valid SESSION_ID variable.

buf_num indicates a valid buffer list element number.

pixel_value indicates a pixel value to set all the buffer data with.

Return Value

rval returns 0 on success. On failure, this function returns an error code. For information about the error code, call imgShowError.

Was this information helpful?

Help us improve your future ni.com experience.

Did you find the documentation you were looking for?

Submit