comparison Framework/Layers/GrayscaleFrameRenderer.cpp @ 560:aaeec7be8fb7

add support for alpha channel in CairoSurface
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 17 Apr 2019 17:57:50 +0200
parents b70e9be013e4
children 1201b12eb9f8
comparison
equal deleted inserted replaced
559:9e61b0ac12f1 560:aaeec7be8fb7
39 float x0 = windowCenter - windowWidth / 2.0f; 39 float x0 = windowCenter - windowWidth / 2.0f;
40 float x1 = windowCenter + windowWidth / 2.0f; 40 float x1 = windowCenter + windowWidth / 2.0f;
41 41
42 //LOG(INFO) << "Window: " << x0 << " => " << x1; 42 //LOG(INFO) << "Window: " << x0 << " => " << x1;
43 43
44 result.reset(new CairoSurface(frame_->GetWidth(), frame_->GetHeight())); 44 result.reset(new CairoSurface(frame_->GetWidth(), frame_->GetHeight(), false /* no alpha */));
45 45
46 const uint8_t* lut = NULL; 46 const uint8_t* lut = NULL;
47 if (style.applyLut_) 47 if (style.applyLut_)
48 { 48 {
49 if (Orthanc::EmbeddedResources::GetFileResourceSize(style.lut_) != 3 * 256) 49 if (Orthanc::EmbeddedResources::GetFileResourceSize(style.lut_) != 3 * 256)