Mercurial > hg > orthanc
comparison Core/Images/IImageWriter.cpp @ 2139:764c9157301b
cleaning
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 09 Nov 2016 15:25:09 +0100 |
parents | bfeacb51af20 |
children | aa4b8895cd23 |
comparison
equal
deleted
inserted
replaced
2138:41b70d5b44c9 | 2139:764c9157301b |
---|---|
42 unsigned int height, | 42 unsigned int height, |
43 unsigned int pitch, | 43 unsigned int pitch, |
44 PixelFormat format, | 44 PixelFormat format, |
45 const void* buffer) | 45 const void* buffer) |
46 { | 46 { |
47 #if !defined(ORTHANC_SANDBOXED) || ORTHANC_SANDBOXED != 1 | 47 #if ORTHANC_SANDBOXED == 0 |
48 std::string compressed; | 48 std::string compressed; |
49 WriteToMemoryInternal(compressed, width, height, pitch, format, buffer); | 49 WriteToMemoryInternal(compressed, width, height, pitch, format, buffer); |
50 Toolbox::WriteFile(compressed, path); | 50 Toolbox::WriteFile(compressed, path); |
51 #else | 51 #else |
52 throw OrthancException(ErrorCode_CannotWriteFile); // Unavailable in sandboxed environments | 52 throw OrthancException(ErrorCode_CannotWriteFile); // Unavailable in sandboxed environments |