Mercurial > hg > orthanc
comparison OrthancFramework/Sources/Images/IImageWriter.cpp @ 4297:785a2713323e
abi continued
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 05 Nov 2020 17:20:49 +0100 |
parents | bf7b9edf6b81 |
children | 2ae905070221 |
comparison
equal
deleted
inserted
replaced
4296:3b70a2e6a06c | 4297:785a2713323e |
---|---|
39 std::string compressed; | 39 std::string compressed; |
40 WriteToMemoryInternal(compressed, width, height, pitch, format, buffer); | 40 WriteToMemoryInternal(compressed, width, height, pitch, format, buffer); |
41 SystemToolbox::WriteFile(compressed, path); | 41 SystemToolbox::WriteFile(compressed, path); |
42 } | 42 } |
43 #endif | 43 #endif |
44 | |
45 IImageWriter::~IImageWriter() | |
46 { | |
47 } | |
48 | |
49 void IImageWriter::WriteToMemory(std::string &compressed, | |
50 const ImageAccessor &accessor) | |
51 { | |
52 WriteToMemoryInternal(compressed, accessor.GetWidth(), accessor.GetHeight(), | |
53 accessor.GetPitch(), accessor.GetFormat(), accessor.GetConstBuffer()); | |
54 } | |
55 | |
56 #if ORTHANC_SANDBOXED == 0 | |
57 void IImageWriter::WriteToFile(const std::string &path, | |
58 const ImageAccessor &accessor) | |
59 { | |
60 WriteToFileInternal(path, accessor.GetWidth(), accessor.GetHeight(), | |
61 accessor.GetPitch(), accessor.GetFormat(), accessor.GetConstBuffer()); | |
62 } | |
63 #endif | |
44 } | 64 } |