The function used to set scanning capabilities is IG_TWAIN_cap_set(), which was briefly described in an earlier sub-section of this scanning discussion.
You have already seen that used in prior sections to set the filename and format for an image acquired using Disk File Transfer mode. However, there are many other capabilities that can be set using that function, including bit depth and layout. There are restrictions on which capabilities can be used based on the hardware that you are using, the transfer mode setting, and the ImageGear function that you call.
Also refer to the TWAIN Scanning Capabilities section.