changeset 1629:7fc8a3ff09ee

fix build
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 09 Nov 2020 15:14:37 +0100
parents 555870323ebc
children 78509230f0d7
files Applications/Samples/Sdl/RtViewer/RtViewerSdl.cpp OrthancStone/Sources/Loaders/SeriesThumbnailsLoader.cpp UnitTestsSources/PixelTestPatternsTests.cpp
diffstat 3 files changed, 9 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/Applications/Samples/Sdl/RtViewer/RtViewerSdl.cpp	Sat Nov 07 00:08:45 2020 +0100
+++ b/Applications/Samples/Sdl/RtViewer/RtViewerSdl.cpp	Mon Nov 09 15:14:37 2020 +0100
@@ -229,7 +229,7 @@
     Orthanc::ImageProcessing::Convert(png, canvas);
 
     Orthanc::PngWriter writer;
-    writer.WriteToFile(target, png);
+    Orthanc::IImageWriter::WriteToFile(writer, target, png);
   }
 
   static boost::shared_ptr<OrthancStone::RtViewerView> GetViewFromWindowId(
--- a/OrthancStone/Sources/Loaders/SeriesThumbnailsLoader.cpp	Sat Nov 07 00:08:45 2020 +0100
+++ b/OrthancStone/Sources/Loaders/SeriesThumbnailsLoader.cpp	Mon Nov 09 15:14:37 2020 +0100
@@ -514,7 +514,7 @@
     std::string jpeg;
     Orthanc::JpegWriter writer;
     writer.SetQuality(JPEG_QUALITY);
-    writer.WriteToMemory(jpeg, *resized);
+    Orthanc::IImageWriter::WriteToMemory(writer, jpeg, *resized);
 
     AcquireThumbnail(info.GetDicomSource(), info.GetStudyInstanceUid(),
                      info.GetSeriesInstanceUid(), new Thumbnail(jpeg, Orthanc::MIME_JPEG));      
@@ -588,7 +588,7 @@
       std::string jpeg;
       Orthanc::JpegWriter writer;
       writer.SetQuality(JPEG_QUALITY);
-      writer.WriteToMemory(jpeg, *thumbnail);
+      Orthanc::IImageWriter::WriteToMemory(writer, jpeg, *thumbnail);
 
       AcquireThumbnail(info.GetDicomSource(), info.GetStudyInstanceUid(),
                        info.GetSeriesInstanceUid(), new Thumbnail(jpeg, Orthanc::MIME_JPEG));
--- a/UnitTestsSources/PixelTestPatternsTests.cpp	Sat Nov 07 00:08:45 2020 +0100
+++ b/UnitTestsSources/PixelTestPatternsTests.cpp	Mon Nov 09 15:14:37 2020 +0100
@@ -51,10 +51,10 @@
 
   Orthanc::PngWriter writer;
 #if 0
-  writer.WriteToFile("SimpleRedBlueHGradient.png", *texture);
+  Orthanc::IImageWriter::WriteToFile(writer, "SimpleRedBlueHGradient.png", *texture);
 #else
   std::string contents;
-  writer.WriteToMemory(contents, *texture);
+  Orthanc::IImageWriter::WriteToMemory(writer, contents, *texture);
 
   ASSERT_EQ(1u, sizeof(unsigned char));
   ASSERT_EQ(391u, sizeof(bin2c_SimpleRedBlueHGradient_png));
@@ -87,10 +87,10 @@
 
   Orthanc::PngWriter writer;
 #if 0
-  writer.WriteToFile("SimpleRedBlueVGradient.png", *texture);
+  Orthanc::IImageWriter::WriteToFile(writer, "SimpleRedBlueVGradient.png", *texture);
 #else
   std::string contents;
-  writer.WriteToMemory(contents, *texture);
+  Orthanc::IImageWriter::WriteToMemory(writer, contents, *texture);
 
   ASSERT_EQ(1u, sizeof(unsigned char));
   ASSERT_EQ(400u, sizeof(bin2c_SimpleRedBlueVGradient_png));
@@ -150,10 +150,10 @@
  
   Orthanc::PngWriter writer;
 #if 0
-  writer.WriteToFile("MultiGradient.png", *texture);
+  Orthanc::IImageWriter::WriteToFile(writer, "MultiGradient.png", *texture);
 #else
   std::string contents;
-  writer.WriteToMemory(contents, *texture);
+  Orthanc::IImageWriter::WriteToMemory(writer, contents, *texture);
 
   ASSERT_EQ(1u, sizeof(unsigned char));
   ASSERT_EQ(774u, sizeof(bin2c_MultiGradient_png));