Mercurial > hg > orthanc-stone
diff Framework/Layers/GrayscaleFrameRenderer.cpp @ 316:ce48c3b3b0e9
fix for new ImageAccessor API
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 08 Oct 2018 12:45:27 +0200 |
parents | 5412adf19980 |
children | 557c8ff1db5c |
line wrap: on
line diff
--- a/Framework/Layers/GrayscaleFrameRenderer.cpp Mon Oct 01 10:46:26 2018 +0200 +++ b/Framework/Layers/GrayscaleFrameRenderer.cpp Mon Oct 08 12:45:27 2018 +0200 @@ -52,7 +52,9 @@ lut = reinterpret_cast<const uint8_t*>(Orthanc::EmbeddedResources::GetFileResourceBuffer(style.lut_)); } - Orthanc::ImageAccessor target = result->GetAccessor(); + Orthanc::ImageAccessor target; + result->GetWriteableAccessor(target); + const unsigned int width = target.GetWidth(); const unsigned int height = target.GetHeight();