Mercurial > hg > orthanc
diff Core/Images/Image.cpp @ 2107:88831c3edd8f
fix
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 19 Oct 2016 17:22:09 +0200 |
parents | 20a001ea4aa2 |
children | a3a65de1840f |
line wrap: on
line diff
--- a/Core/Images/Image.cpp Mon Oct 17 15:36:50 2016 +0200 +++ b/Core/Images/Image.cpp Wed Oct 19 17:22:09 2016 +0200 @@ -40,8 +40,9 @@ { Image::Image(PixelFormat format, unsigned int width, - unsigned int height) : - image_(format, width, height) + unsigned int height, + bool forceMinimalPitch) : + image_(format, width, height, forceMinimalPitch) { ImageAccessor accessor = image_.GetAccessor(); AssignWritable(format, width, height, accessor.GetPitch(), accessor.GetBuffer()); @@ -50,7 +51,7 @@ Image* Image::Clone(const ImageAccessor& source) { - std::auto_ptr<Image> target(new Image(source.GetFormat(), source.GetWidth(), source.GetHeight())); + std::auto_ptr<Image> target(new Image(source.GetFormat(), source.GetWidth(), source.GetHeight(), false)); ImageProcessing::Copy(*target, source); return target.release(); }