How to turn off the capture bayer conversion in the code

How to turn off the capture bayer conversion in the code, I need to get the bayer image.

The GenICam Browser saves this in the GenICam.ini. See this entry on how to change the config:

GetLinearAccess returns incorrect values for the xInc for 16Bit camera images

Programming QuestionsC-style API

acquisition linearaccess pixelformat

The CVB .Net wrapper simplifies access for the discovery case. Call .SetParameter("PixelFormat", "0") on the entry returned by DeviceFactory.Discover() you want to open.