# HG changeset patch # User Sebastien Jodogne # Date 1404220934 -7200 # Node ID 0bfdfc0c6b9b1dfc3e69f2182b2550a4410f0440 # Parent e077093bf1a99472db734f1680eda9d7f1412821 fix diff -r e077093bf1a9 -r 0bfdfc0c6b9b Plugins/Samples/GdcmDecoding/Plugin.cpp --- a/Plugins/Samples/GdcmDecoding/Plugin.cpp Tue Jul 01 14:30:42 2014 +0200 +++ b/Plugins/Samples/GdcmDecoding/Plugin.cpp Tue Jul 01 15:22:14 2014 +0200 @@ -71,13 +71,15 @@ image.GetPixelFormat().GetScalarType() == gdcm::PixelFormat::UINT8) { format = Orthanc::PixelFormat_RGB24; + return true; } else if (image.GetPixelFormat().GetSamplesPerPixel() == 4 && image.GetPixelFormat().GetScalarType() == gdcm::PixelFormat::UINT8) { format = Orthanc::PixelFormat_RGBA32; + return true; } - + return false; }