Mercurial > hg > orthanc
diff Core/FileFormats/PngWriter.cpp @ 465:7a966b440f19
signed images to PNG
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 12 Jul 2013 11:15:27 +0200 |
parents | 6f47a4262618 |
children | 51892be15618 |
line wrap: on
line diff
--- a/Core/FileFormats/PngWriter.cpp Fri Jul 12 10:37:31 2013 +0200 +++ b/Core/FileFormats/PngWriter.cpp Fri Jul 12 11:15:27 2013 +0200 @@ -146,6 +146,7 @@ break; case PixelFormat_Grayscale16: + case PixelFormat_SignedGrayscale16: pimpl_->bitDepth_ = 16; pimpl_->colorType_ = PNG_COLOR_TYPE_GRAY; break; @@ -172,6 +173,7 @@ switch (format) { case PixelFormat_Grayscale16: + case PixelFormat_SignedGrayscale16: png_set_rows(pimpl_->png_, pimpl_->info_, &pimpl_->rows_[0]); if (Toolbox::DetectEndianness() == Endianness_Little)