|
Given a bitmapSource, I want to read the pixels natively. As I understand I need to use the CopyPixels call. But understanding the pixels would require the knowledge of Bits per pixel and color Context of the bitmapSource. Though I know the bits per pixel - how do I get to know the color Context.
The PixelFormat class does not allow me much information - the only way to use PixelFormat, as I percieve, is to compare it with the various static pre-defined values of the PixelFormat. Would that be the most generic way?
Essentialy, I want to save the bitmapSource in a RAW format. What would be the best way to go about it?
Abhas |