RtGVSetFramePixelFormat

RtGVSetFramePixelFormat sets the pixel format on a specified camera.

Syntax

BOOL RtGVSetFramePixelFormat(
	UINT32 cameraHandle, 
	GVSP_PIXEL_TYPE pixelFormat
);

Parameters

cameraHandle

The handle of the camera whose pixel format will be set.

pixelFormat

The pixel format to be set on the specified camera. See enumeration GVSP_PIXEL_TYPE for more information.

Return Values

Returns TRUE if the function succeeds, FALSE if the function fails. Call GetLastError for extended error information.

Remarks

This function will fail if it is called before RtGVInitialize and RtGVInitCameraControl.

To find the camera to query, call RtGVInitialize and then call RtGVEnumerateCameras to get an RTGV_CAMERA_INFO array describing each of the cameras found on the network, along with each of their handles.

Requirements

Minimum Supported Version RTX64 4.1 Vision SDK

Header

RtGVApi.h

Library

RtGigEVision.lib

See Also:

RtGVGetFramePixelFormat

RtGVEnumerateCameras

RtGVGetFrameNumberOfChannels

RtGVGetFramePixelDepth

RtGVStartReceiveStream

GVSP_PIXEL_TYPE