# HG changeset patch # User Sebastien Jodogne # Date 1575372546 -3600 # Node ID 17a92c39c633f70b33881965e150c263b0ddc31c # Parent 6009c59d867672452d469e1098ab3a339225406f# Parent c93a6218f0cd4bbc0796080a3c1065f3f0604424 integration mainline->broker diff -r 6009c59d8676 -r 17a92c39c633 Framework/Toolbox/DicomInstanceParameters.cpp --- a/Framework/Toolbox/DicomInstanceParameters.cpp Mon Dec 02 14:32:05 2019 +0100 +++ b/Framework/Toolbox/DicomInstanceParameters.cpp Tue Dec 03 12:29:06 2019 +0100 @@ -420,7 +420,19 @@ texture->SetCustomWindowing(data_.defaultWindowingCenter_, data_.defaultWindowingWidth_); } - + + + if (data_.imageInformation_.GetPhotometricInterpretation() + == Orthanc::PhotometricInterpretation_Monochrome1) + { + texture->SetInverted(true); + } + else if (data_.imageInformation_.GetPhotometricInterpretation() + == Orthanc::PhotometricInterpretation_Monochrome2) + { + texture->SetInverted(false); + } + return texture.release(); } }