Mercurial > hg > orthanc
comparison OrthancServer/UnitTestsSources/UnitTestsMain.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 | d7a50b7b8466 |
children | d9473bd5ed43 |
comparison
equal
deleted
inserted
replaced
4310:2ae905070221 | 4311:cb9aef006229 |
---|---|
146 lock.GetConfiguration().GetFontRegistry().GetFont(0).Draw | 146 lock.GetConfiguration().GetFontRegistry().GetFont(0).Draw |
147 (s, "Hello world É\n\rComment ça va ?\nq", 50, 60, 255, 0, 0); | 147 (s, "Hello world É\n\rComment ça va ?\nq", 50, 60, 255, 0, 0); |
148 } | 148 } |
149 | 149 |
150 Orthanc::PngWriter w; | 150 Orthanc::PngWriter w; |
151 w.WriteToFile("UnitTestsResults/font.png", s); | 151 Orthanc::IImageWriter::WriteToFile(w, "UnitTestsResults/font.png", s); |
152 } | 152 } |
153 | 153 |
154 | 154 |
155 TEST(FromDcmtkBridge, ValueRepresentationConversions) | 155 TEST(FromDcmtkBridge, ValueRepresentationConversions) |
156 { | 156 { |