I have a 3rd party component which requires me to give it the bitsperpixel from a bitmap.
What\'s the best way to get \"bits per pixel\"?
My starting point is th
Rather than creating your own function, I'd suggest using this existing function in the framework:
Image.GetPixelFormatSize(bitmap.PixelFormat)