'TIFF File displaying as a negative

I am storing TIFF formatted images in a sql table but when I retrieve and display in a WPF Control, some of them they are displaying as a negative. What can I use in the TIFF format structure to determine if it will display as a negative and what can I do to convert\display the image correctly?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source