Mercurial > hg > orthanc-stone
diff Framework/Orthanc/Core/Images/Image.cpp @ 11:4b7e0244881f
fix
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 26 Oct 2016 12:14:03 +0200 |
parents | 2dbe613f6c93 |
children |
line wrap: on
line diff
--- a/Framework/Orthanc/Core/Images/Image.cpp Mon Oct 24 14:45:05 2016 +0200 +++ b/Framework/Orthanc/Core/Images/Image.cpp Wed Oct 26 12:14:03 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(); }