diff Framework/Viewport/CairoSurface.h @ 556:b1e1eccee214

CairoSurface::Copy()
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 17 Apr 2019 14:37:18 +0200
parents b70e9be013e4
children aaeec7be8fb7
line wrap: on
line diff
--- a/Framework/Viewport/CairoSurface.h	Tue Apr 09 17:49:37 2019 +0200
+++ b/Framework/Viewport/CairoSurface.h	Wed Apr 17 14:37:18 2019 +0200
@@ -56,8 +56,10 @@
       Allocate(width, height);
     }
 
+  private:
     CairoSurface(Orthanc::ImageAccessor& accessor);
 
+  public:
     ~CairoSurface()
     {
       Release();
@@ -68,6 +70,8 @@
 
     void Copy(const CairoSurface& other);
 
+    void Copy(const Orthanc::ImageAccessor& source);
+
     unsigned int GetWidth() const
     {
       return width_;