Mercurial > hg > orthanc
comparison Core/Images/Image.cpp @ 2861:9b4251721f22
ImageAccessor now non-copyable
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 05 Oct 2018 17:46:02 +0200 |
parents | 878b59270859 |
children | 4e43e67f8ecf |
comparison
equal
deleted
inserted
replaced
2857:482631e4e290 | 2861:9b4251721f22 |
---|---|
43 unsigned int width, | 43 unsigned int width, |
44 unsigned int height, | 44 unsigned int height, |
45 bool forceMinimalPitch) : | 45 bool forceMinimalPitch) : |
46 image_(format, width, height, forceMinimalPitch) | 46 image_(format, width, height, forceMinimalPitch) |
47 { | 47 { |
48 ImageAccessor accessor = image_.GetAccessor(); | 48 ImageAccessor accessor; |
49 image_.GetWriteableAccessor(accessor); | |
50 | |
49 AssignWritable(format, width, height, accessor.GetPitch(), accessor.GetBuffer()); | 51 AssignWritable(format, width, height, accessor.GetPitch(), accessor.GetBuffer()); |
50 } | 52 } |
51 | 53 |
52 | 54 |
53 Image* Image::Clone(const ImageAccessor& source) | 55 Image* Image::Clone(const ImageAccessor& source) |