Mercurial > hg > orthanc
comparison OrthancServer/Sources/OrthancRestApi/OrthancRestResources.cpp @ 5054:255b02c68908
Added support for RGBA64 images in tools/create-dicom and /preview (Contribution from James Manners - Pliny)
author | Alain Mazy <am@osimis.io> |
---|---|
date | Fri, 08 Jul 2022 15:26:52 +0200 |
parents | 22966345eaba |
children | d4e5ca0c9307 |
comparison
equal
deleted
inserted
replaced
5053:1e435be86887 | 5054:255b02c68908 |
---|---|
1062 | 1062 |
1063 targetWidth = boost::math::iround(ratio * static_cast<float>(decoded->GetWidth())); | 1063 targetWidth = boost::math::iround(ratio * static_cast<float>(decoded->GetWidth())); |
1064 targetHeight = boost::math::iround(ratio * static_cast<float>(decoded->GetHeight())); | 1064 targetHeight = boost::math::iround(ratio * static_cast<float>(decoded->GetHeight())); |
1065 } | 1065 } |
1066 | 1066 |
1067 if (decoded->GetFormat() == PixelFormat_RGB24) | 1067 if (decoded->GetFormat() == PixelFormat_RGB24 || decoded->GetFormat() == PixelFormat_RGB48) |
1068 { | 1068 { |
1069 if (targetWidth == decoded->GetWidth() && | 1069 if (targetWidth == decoded->GetWidth() && |
1070 targetHeight == decoded->GetHeight()) | 1070 targetHeight == decoded->GetHeight()) |
1071 { | 1071 { |
1072 DefaultHandler(call, decoded, ImageExtractionMode_Preview, false); | 1072 DefaultHandler(call, decoded, ImageExtractionMode_Preview, false); |