Mercurial > hg > orthanc-wsi
diff Framework/ImageToolbox.cpp @ 323:429c4efa1fde
added option --force-openslide
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 16 Oct 2024 19:36:01 +0200 |
parents | 8ad12abde290 |
children |
line wrap: on
line diff
--- a/Framework/ImageToolbox.cpp Wed Oct 16 18:42:10 2024 +0200 +++ b/Framework/ImageToolbox.cpp Wed Oct 16 19:36:01 2024 +0200 @@ -287,7 +287,6 @@ const unsigned int width = image.GetWidth(); const unsigned int height = image.GetHeight(); const unsigned int pitch = image.GetPitch(); - uint8_t* buffer = reinterpret_cast<uint8_t*>(image.GetBuffer()); if (image.GetFormat() != Orthanc::PixelFormat_RGB24 || pitch < 3 * width) @@ -297,7 +296,7 @@ for (unsigned int y = 0; y < height; y++) { - uint8_t* p = buffer + y * pitch; + uint8_t* p = reinterpret_cast<uint8_t*>(image.GetRow(y)); for (unsigned int x = 0; x < width; x++, p += 3) {