Mercurial > hg > orthanc-stone
comparison Framework/Layers/ColorFrameRenderer.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 | 4f2416d519b4 |
comparison
equal
deleted
inserted
replaced
559:9e61b0ac12f1 | 560:aaeec7be8fb7 |
---|---|
27 | 27 |
28 namespace OrthancStone | 28 namespace OrthancStone |
29 { | 29 { |
30 CairoSurface* ColorFrameRenderer::GenerateDisplay(const RenderStyle& style) | 30 CairoSurface* ColorFrameRenderer::GenerateDisplay(const RenderStyle& style) |
31 { | 31 { |
32 std::auto_ptr<CairoSurface> display(new CairoSurface(frame_->GetWidth(), frame_->GetHeight())); | 32 std::auto_ptr<CairoSurface> display(new CairoSurface(frame_->GetWidth(), frame_->GetHeight(), false /* no alpha */)); |
33 | 33 |
34 Orthanc::ImageAccessor target; | 34 Orthanc::ImageAccessor target; |
35 display->GetWriteableAccessor(target); | 35 display->GetWriteableAccessor(target); |
36 | 36 |
37 Orthanc::ImageProcessing::Convert(target, *frame_); | 37 Orthanc::ImageProcessing::Convert(target, *frame_); |