Determine color depth


  • I need to determine the color depth of an image file (as in "x bits per pixel"). The only way I've discovered so far is Image.PixelFormat; however, I'd have to switch-case to map the PixelFormat enum value to an int.


    I'm sure I've just overlooked a convenient method to directly obtain a plain int... please point me to it. Smile

    Thursday, May 10, 2007 6:43 AM


All replies