diff OrthancFramework/Sources/DicomParsing/Internals/DicomImageDecoder.cpp @ 4311:cb9aef006229

turning IImageWriter into a pure interface
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 09 Nov 2020 15:07:55 +0100
parents 785a2713323e
children 6d49e3b6ff77
line wrap: on
line diff
--- a/OrthancFramework/Sources/DicomParsing/Internals/DicomImageDecoder.cpp	Mon Nov 09 14:40:51 2020 +0100
+++ b/OrthancFramework/Sources/DicomParsing/Internals/DicomImageDecoder.cpp	Mon Nov 09 15:07:55 2020 +0100
@@ -989,7 +989,7 @@
     ApplyExtractionMode(image, mode, invert);
 
     PamWriter writer;
-    writer.WriteToMemory(result, *image);
+    IImageWriter::WriteToMemory(writer, result, *image);
   }
 
 #if ORTHANC_ENABLE_PNG == 1
@@ -1001,7 +1001,7 @@
     ApplyExtractionMode(image, mode, invert);
 
     PngWriter writer;
-    writer.WriteToMemory(result, *image);
+    IImageWriter::WriteToMemory(writer, result, *image);
   }
 #endif
 
@@ -1023,7 +1023,7 @@
 
     JpegWriter writer;
     writer.SetQuality(quality);
-    writer.WriteToMemory(result, *image);
+    IImageWriter::WriteToMemory(writer, result, *image);
   }
 #endif