# HG changeset patch # User Sebastien Jodogne # Date 1604930945 -3600 # Node ID 7459819f31765dac7aa4dec42593edc137238ef6 # Parent cab272485c384ce6061c1e9baa5cd551e7fa7832 fix build diff -r cab272485c38 -r 7459819f3176 Framework/ImageToolbox.cpp --- a/Framework/ImageToolbox.cpp Fri Nov 06 17:45:36 2020 +0100 +++ b/Framework/ImageToolbox.cpp Mon Nov 09 15:09:05 2020 +0100 @@ -220,7 +220,7 @@ throw Orthanc::OrthancException(Orthanc::ErrorCode_ParameterOutOfRange); } - writer->WriteToMemory(target, source); + Orthanc::IImageWriter::WriteToMemory(*writer, target, source); } } diff -r cab272485c38 -r 7459819f3176 ViewerPlugin/Plugin.cpp --- a/ViewerPlugin/Plugin.cpp Fri Nov 06 17:45:36 2020 +0100 +++ b/ViewerPlugin/Plugin.cpp Mon Nov 09 15:09:05 2020 +0100 @@ -219,7 +219,7 @@ std::string png; Orthanc::PngWriter writer; - writer.WriteToMemory(png, *decoded); + Orthanc::IImageWriter::WriteToMemory(writer, png, *decoded); OrthancPluginAnswerBuffer(OrthancPlugins::GetGlobalContext(), output, png.c_str(), png.size(), "image/png"); }