Given a bitmap image as follows:
Bitmap m_Bitmap = (Bitmap)Bitmap.FromFile(@"c:\t.png", false);
I could find out the PixelFormat with m_Bitmap.PixelFormat.
However, I would like to know how many bits are used for color display.
If the created bitmap is of Format24bppRgb, then it uses 24 bits.
Is it possible that I can find the number of bits used by Bitmap directly?
Microsoft is conducting an online survey to understand your opinion of the Msdn Web site. If you choose to participate, the online survey will be presented to you when you leave the Msdn Web site.
Would you like to participate?