Mercurial > hg > orthanc-stone
comparison 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 |
comparison
equal
deleted
inserted
replaced
310:348e00b837b9 | 316:ce48c3b3b0e9 |
---|---|
50 } | 50 } |
51 | 51 |
52 lut = reinterpret_cast<const uint8_t*>(Orthanc::EmbeddedResources::GetFileResourceBuffer(style.lut_)); | 52 lut = reinterpret_cast<const uint8_t*>(Orthanc::EmbeddedResources::GetFileResourceBuffer(style.lut_)); |
53 } | 53 } |
54 | 54 |
55 Orthanc::ImageAccessor target = result->GetAccessor(); | 55 Orthanc::ImageAccessor target; |
56 result->GetWriteableAccessor(target); | |
57 | |
56 const unsigned int width = target.GetWidth(); | 58 const unsigned int width = target.GetWidth(); |
57 const unsigned int height = target.GetHeight(); | 59 const unsigned int height = target.GetHeight(); |
58 | 60 |
59 for (unsigned int y = 0; y < height; y++) | 61 for (unsigned int y = 0; y < height; y++) |
60 { | 62 { |