A Special Note About Loading 12 and 16-Bit Grayscale Images
If the image to be loaded is 12 or 16-bit grayscale and 0 is passed for the parameter that controls the number of bits per pixel at which to load the image, then if L_SUPPORT_EXTGRAY support is locked, the image will be loaded as 8-bit grayscale, instead of the original bits per pixel.
For more information on the L_SUPPORT_EXTGRAY support, refer to the UnlockSupport method.