Available in the LEADTOOLS Imaging toolkit.
nBitsPerPixel
Bits per pixel to be set. This is used to determine the number of RGB elements.