I have a 16 bit grayscale image that I want to display using WPF in .NET 3.5 sp1. Currently, I display that image using an embedded winform that uses OpenGL to set the image display format to Luminance 16.
DirectX has a similar property, SurfaceFormat.
I want to be able to display an image in WPF and set the SurfaceFormat to Luminance16. How do I do that?
Note: Currently, even though WPF natively supports Gray16, it doesn't render Gray16 properly.
Edit: The real answer is that WPF does not do what it says it does. Gray16, while supported natively, is actually divided by 256 in order to fit into a 16 bit display. So, the Gray16 format is a lie that burns like acid in the eyes.