Mercurial > hg > orthanc
comparison Core/Images/Image.h @ 2084:20a001ea4aa2
Image::Clone()
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 09 Sep 2016 12:09:04 +0200 |
parents | b1291df2f780 |
children | 88831c3edd8f |
comparison
equal
deleted
inserted
replaced
2083:bfeacb51af20 | 2084:20a001ea4aa2 |
---|---|
43 ImageBuffer image_; | 43 ImageBuffer image_; |
44 | 44 |
45 public: | 45 public: |
46 Image(PixelFormat format, | 46 Image(PixelFormat format, |
47 unsigned int width, | 47 unsigned int width, |
48 unsigned int height) : | 48 unsigned int height); |
49 image_(format, width, height) | 49 |
50 { | 50 static Image* Clone(const ImageAccessor& source); |
51 ImageAccessor accessor = image_.GetAccessor(); | |
52 AssignWritable(format, width, height, accessor.GetPitch(), accessor.GetBuffer()); | |
53 } | |
54 }; | 51 }; |
55 } | 52 } |