comparison Applications/Samples/SingleFrameEditorApplication.h @ 369:557c8ff1db5c am-2

integration mainline->am-2
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 05 Nov 2018 10:03:14 +0100
parents ef31240a73f6
children 70256a53ff21
comparison
equal deleted inserted replaced
367:face7b7008de 369:557c8ff1db5c
2247 2247
2248 // Conversion from Float32 to BGRA32 (cairo). Very similar to 2248 // Conversion from Float32 to BGRA32 (cairo). Very similar to
2249 // GrayscaleFrameRenderer => TODO MERGE? 2249 // GrayscaleFrameRenderer => TODO MERGE?
2250 2250
2251 Orthanc::ImageAccessor target; 2251 Orthanc::ImageAccessor target;
2252 cairoBuffer_->GetAccessor(target); 2252 cairoBuffer_->GetWriteableAccessor(target);
2253 2253
2254 float scaling = 255.0f / (x1 - x0); 2254 float scaling = 255.0f / (x1 - x0);
2255 2255
2256 for (unsigned int y = 0; y < height; y++) 2256 for (unsigned int y = 0; y < height; y++)
2257 { 2257 {