User`s manual

AW00098504000 Sensor Bit Depth, Pixel Formats, Tap Geometries, and Clock Speeds
Basler ace Camera Link 145
Setting the Pixel Format Using Basler Pylon
You can use the pylon API to set the Pixel Format parameter value from within your application. The
following code snippet illustrates using the API to set the parameter value:
Mono cameras
// Set pixel format to Mono 8
Camera.PixelFormat.SetValue( PixelFormat_Mono8 );
// Set pixel format to Mono 10
Camera.PixelFormat.SetValue( PixelFormat_Mono10 );
// Set pixel format to Mono 12
Camera.PixelFormat.SetValue( PixelFormat_Mono12 );
Color Cameras:
// Set pixel format to Bayer GB 8
Camera.PixelFormat.SetValue( PixelFormat_BayerGB8 );
// Set pixel format to Bayer GB 10
Camera.PixelFormat.SetValue( PixelFormat_BayerGB10 );
// Set pixel format to Bayer GB 12
Camera.PixelFormat.SetValue( PixelFormat_BayerGB12 );
You can also use the Basler pylon Viewer application to easily set the parameter.
For more information about the pylon API and the pylon Viewer, see Section 3.1 on page 19.
Setting the Pixel Format Using Direct Register Access
To set the sensor pixel format via direct register access:
On mono cameras, set the value of the Pixel Format register to Mono 8, Mono 10, or Mono 12
as desired.
On color cameras, set the value of the Pixel Format register to Bayer GB 8, Bayer GB 10, or
Bayer GB 12 as desired.
For more information about direct register access, see Section 3.2 on page 21.