Mercurial > hg > orthanc-stone
comparison 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 |
comparison
equal
deleted
inserted
replaced
555:731b40e9bfe1 | 556:b1e1eccee214 |
---|---|
54 surface_(NULL) | 54 surface_(NULL) |
55 { | 55 { |
56 Allocate(width, height); | 56 Allocate(width, height); |
57 } | 57 } |
58 | 58 |
59 private: | |
59 CairoSurface(Orthanc::ImageAccessor& accessor); | 60 CairoSurface(Orthanc::ImageAccessor& accessor); |
60 | 61 |
62 public: | |
61 ~CairoSurface() | 63 ~CairoSurface() |
62 { | 64 { |
63 Release(); | 65 Release(); |
64 } | 66 } |
65 | 67 |
66 void SetSize(unsigned int width, | 68 void SetSize(unsigned int width, |
67 unsigned int height); | 69 unsigned int height); |
68 | 70 |
69 void Copy(const CairoSurface& other); | 71 void Copy(const CairoSurface& other); |
72 | |
73 void Copy(const Orthanc::ImageAccessor& source); | |
70 | 74 |
71 unsigned int GetWidth() const | 75 unsigned int GetWidth() const |
72 { | 76 { |
73 return width_; | 77 return width_; |
74 } | 78 } |