Mercurial > hg > orthanc
diff OrthancFramework/Sources/Images/ImageAccessor.cpp @ 4273:0034f855c023
tuning log categories from command-line, and binary compat with orthanc framework 1.7.2
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 03 Nov 2020 12:24:50 +0100 |
parents | 2d5209153b32 |
children | 9279de56a405 |
line wrap: on
line diff
--- a/OrthancFramework/Sources/Images/ImageAccessor.cpp Tue Nov 03 07:19:33 2020 +0100 +++ b/OrthancFramework/Sources/Images/ImageAccessor.cpp Tue Nov 03 12:24:50 2020 +0100 @@ -90,7 +90,7 @@ target.AddChunk("], [ 3 " + boost::lexical_cast<std::string>(source.GetHeight()) + " " + boost::lexical_cast<std::string>(source.GetWidth()) + " ]), [ 3 2 1 ]))"); } - + void* ImageAccessor::GetBuffer() { @@ -293,4 +293,17 @@ format_ = format; } + + +#if ORTHANC_BUILDING_FRAMEWORK_LIBRARY == 1 + void* ImageAccessor::GetBuffer() const + { + return const_cast<ImageAccessor&>(*this).GetBuffer(); + } + + void* ImageAccessor::GetRow(unsigned int y) const + { + return const_cast<ImageAccessor&>(*this).GetRow(y); + } +#endif }