Home › Forums › TWAIN Classic › Bit Depth and Pixel Type Container Types › Reply To: Bit Depth and Pixel Type Container Types
ah, right then. if i were interested the setting that was used during the transfer I would check the tw_ImageInfo structure – tw_ImageInfo.BitsPerPixel and tw_ImageInfo.PixelType.
If I were somehow unable to get the tw_imageInfo, I would feel pretty confident that I only needed to check for a oneValue, there is *some* chance that you’ll get an enum but I’m thinking if you ask for a oneVal you’ll be ok. I’d be more concerned with (the slim chance that) the approach fails to provide the right info do to the source reseting values after the scan is complete to some default that wasn’t used during the transfer – it’s not likely but it *could* happen,
If it were me, I’d check the tw_ImageInfo. Some devices might also give useful bits in twei_*.
.