Mercurial > hg > orthanc
annotate UnitTestsSources/ImageTests.cpp @ 2236:55843d0139d3
fix
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 16 Dec 2016 14:36:27 +0100 |
parents | 5a8840920121 |
children | a3a65de1840f |
rev | line source |
---|---|
827
3d6f9b7d0add
precompiled headers in unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
803
diff
changeset
|
1 /** |
3d6f9b7d0add
precompiled headers in unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
803
diff
changeset
|
2 * Orthanc - A Lightweight, RESTful DICOM Store |
1900 | 3 * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics |
1288
6e7e5ed91c2d
upgrade to year 2015
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
967
diff
changeset
|
4 * Department, University Hospital of Liege, Belgium |
827
3d6f9b7d0add
precompiled headers in unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
803
diff
changeset
|
5 * |
3d6f9b7d0add
precompiled headers in unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
803
diff
changeset
|
6 * This program is free software: you can redistribute it and/or |
3d6f9b7d0add
precompiled headers in unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
803
diff
changeset
|
7 * modify it under the terms of the GNU General Public License as |
3d6f9b7d0add
precompiled headers in unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
803
diff
changeset
|
8 * published by the Free Software Foundation, either version 3 of the |
3d6f9b7d0add
precompiled headers in unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
803
diff
changeset
|
9 * License, or (at your option) any later version. |
3d6f9b7d0add
precompiled headers in unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
803
diff
changeset
|
10 * |
3d6f9b7d0add
precompiled headers in unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
803
diff
changeset
|
11 * In addition, as a special exception, the copyright holders of this |
3d6f9b7d0add
precompiled headers in unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
803
diff
changeset
|
12 * program give permission to link the code of its release with the |
3d6f9b7d0add
precompiled headers in unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
803
diff
changeset
|
13 * OpenSSL project's "OpenSSL" library (or with modified versions of it |
3d6f9b7d0add
precompiled headers in unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
803
diff
changeset
|
14 * that use the same license as the "OpenSSL" library), and distribute |
3d6f9b7d0add
precompiled headers in unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
803
diff
changeset
|
15 * the linked executables. You must obey the GNU General Public License |
3d6f9b7d0add
precompiled headers in unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
803
diff
changeset
|
16 * in all respects for all of the code used other than "OpenSSL". If you |
3d6f9b7d0add
precompiled headers in unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
803
diff
changeset
|
17 * modify file(s) with this exception, you may extend this exception to |
3d6f9b7d0add
precompiled headers in unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
803
diff
changeset
|
18 * your version of the file(s), but you are not obligated to do so. If |
3d6f9b7d0add
precompiled headers in unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
803
diff
changeset
|
19 * you do not wish to do so, delete this exception statement from your |
3d6f9b7d0add
precompiled headers in unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
803
diff
changeset
|
20 * version. If you delete this exception statement from all source files |
3d6f9b7d0add
precompiled headers in unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
803
diff
changeset
|
21 * in the program, then also delete it here. |
3d6f9b7d0add
precompiled headers in unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
803
diff
changeset
|
22 * |
3d6f9b7d0add
precompiled headers in unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
803
diff
changeset
|
23 * This program is distributed in the hope that it will be useful, but |
3d6f9b7d0add
precompiled headers in unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
803
diff
changeset
|
24 * WITHOUT ANY WARRANTY; without even the implied warranty of |
3d6f9b7d0add
precompiled headers in unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
803
diff
changeset
|
25 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
3d6f9b7d0add
precompiled headers in unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
803
diff
changeset
|
26 * General Public License for more details. |
3d6f9b7d0add
precompiled headers in unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
803
diff
changeset
|
27 * |
3d6f9b7d0add
precompiled headers in unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
803
diff
changeset
|
28 * You should have received a copy of the GNU General Public License |
3d6f9b7d0add
precompiled headers in unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
803
diff
changeset
|
29 * along with this program. If not, see <http://www.gnu.org/licenses/>. |
3d6f9b7d0add
precompiled headers in unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
803
diff
changeset
|
30 **/ |
3d6f9b7d0add
precompiled headers in unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
803
diff
changeset
|
31 |
3d6f9b7d0add
precompiled headers in unit tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
803
diff
changeset
|
32 |
831
84513f2ee1f3
pch for unit tests and server
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
827
diff
changeset
|
33 #include "PrecompiledHeadersUnitTests.h" |
368 | 34 #include "gtest/gtest.h" |
35 | |
1612
96582230ddcb
Core/ImageFormats folder renamed as Core/Images
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1611
diff
changeset
|
36 #include "../Core/Images/Font.h" |
96582230ddcb
Core/ImageFormats folder renamed as Core/Images
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1611
diff
changeset
|
37 #include "../Core/Images/Image.h" |
96582230ddcb
Core/ImageFormats folder renamed as Core/Images
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1611
diff
changeset
|
38 #include "../Core/Images/ImageProcessing.h" |
96582230ddcb
Core/ImageFormats folder renamed as Core/Images
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1611
diff
changeset
|
39 #include "../Core/Images/JpegReader.h" |
96582230ddcb
Core/ImageFormats folder renamed as Core/Images
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1611
diff
changeset
|
40 #include "../Core/Images/JpegWriter.h" |
96582230ddcb
Core/ImageFormats folder renamed as Core/Images
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1611
diff
changeset
|
41 #include "../Core/Images/PngReader.h" |
96582230ddcb
Core/ImageFormats folder renamed as Core/Images
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1611
diff
changeset
|
42 #include "../Core/Images/PngWriter.h" |
639
51892be15618
fix for big endian architectures
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
632
diff
changeset
|
43 #include "../Core/Toolbox.h" |
2142 | 44 #include "../Core/TemporaryFile.h" |
1610
2dff2bdffdb8
font support within Orthanc
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1608
diff
changeset
|
45 #include "../OrthancServer/OrthancInitialization.h" |
2dff2bdffdb8
font support within Orthanc
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1608
diff
changeset
|
46 |
2dff2bdffdb8
font support within Orthanc
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1608
diff
changeset
|
47 #include <stdint.h> |
639
51892be15618
fix for big endian architectures
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
632
diff
changeset
|
48 |
368 | 49 |
50 TEST(PngWriter, ColorPattern) | |
51 { | |
52 Orthanc::PngWriter w; | |
1654
3727a09e7b53
fix some icc warnings
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1612
diff
changeset
|
53 unsigned int width = 17; |
3727a09e7b53
fix some icc warnings
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1612
diff
changeset
|
54 unsigned int height = 61; |
3727a09e7b53
fix some icc warnings
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1612
diff
changeset
|
55 unsigned int pitch = width * 3; |
368 | 56 |
57 std::vector<uint8_t> image(height * pitch); | |
1654
3727a09e7b53
fix some icc warnings
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1612
diff
changeset
|
58 for (unsigned int y = 0; y < height; y++) |
368 | 59 { |
60 uint8_t *p = &image[0] + y * pitch; | |
1654
3727a09e7b53
fix some icc warnings
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1612
diff
changeset
|
61 for (unsigned int x = 0; x < width; x++, p += 3) |
368 | 62 { |
63 p[0] = (y % 3 == 0) ? 255 : 0; | |
64 p[1] = (y % 3 == 1) ? 255 : 0; | |
65 p[2] = (y % 3 == 2) ? 255 : 0; | |
66 } | |
67 } | |
68 | |
1916 | 69 Orthanc::ImageAccessor accessor; |
70 accessor.AssignReadOnly(Orthanc::PixelFormat_RGB24, width, height, pitch, &image[0]); | |
71 | |
72 w.WriteToFile("UnitTestsResults/ColorPattern.png", accessor); | |
639
51892be15618
fix for big endian architectures
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
632
diff
changeset
|
73 |
51892be15618
fix for big endian architectures
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
632
diff
changeset
|
74 std::string f, md5; |
2140 | 75 Orthanc::SystemToolbox::ReadFile(f, "UnitTestsResults/ColorPattern.png"); |
639
51892be15618
fix for big endian architectures
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
632
diff
changeset
|
76 Orthanc::Toolbox::ComputeMD5(md5, f); |
51892be15618
fix for big endian architectures
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
632
diff
changeset
|
77 ASSERT_EQ("604e785f53c99cae6ea4584870b2c41d", md5); |
368 | 78 } |
79 | |
80 TEST(PngWriter, Gray8Pattern) | |
81 { | |
82 Orthanc::PngWriter w; | |
83 int width = 17; | |
84 int height = 256; | |
85 int pitch = width; | |
86 | |
87 std::vector<uint8_t> image(height * pitch); | |
88 for (int y = 0; y < height; y++) | |
89 { | |
90 uint8_t *p = &image[0] + y * pitch; | |
91 for (int x = 0; x < width; x++, p++) | |
92 { | |
93 *p = y; | |
94 } | |
95 } | |
96 | |
1916 | 97 Orthanc::ImageAccessor accessor; |
98 accessor.AssignReadOnly(Orthanc::PixelFormat_Grayscale8, width, height, pitch, &image[0]); | |
99 | |
100 w.WriteToFile("UnitTestsResults/Gray8Pattern.png", accessor); | |
639
51892be15618
fix for big endian architectures
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
632
diff
changeset
|
101 |
51892be15618
fix for big endian architectures
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
632
diff
changeset
|
102 std::string f, md5; |
2140 | 103 Orthanc::SystemToolbox::ReadFile(f, "UnitTestsResults/Gray8Pattern.png"); |
639
51892be15618
fix for big endian architectures
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
632
diff
changeset
|
104 Orthanc::Toolbox::ComputeMD5(md5, f); |
51892be15618
fix for big endian architectures
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
632
diff
changeset
|
105 ASSERT_EQ("5a9b98bea3d0a6d983980cc38bfbcdb3", md5); |
368 | 106 } |
107 | |
108 TEST(PngWriter, Gray16Pattern) | |
109 { | |
110 Orthanc::PngWriter w; | |
111 int width = 256; | |
112 int height = 256; | |
369
4632a044746e
simplification of the code
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
368
diff
changeset
|
113 int pitch = width * 2 + 16; |
368 | 114 |
115 std::vector<uint8_t> image(height * pitch); | |
369
4632a044746e
simplification of the code
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
368
diff
changeset
|
116 |
368 | 117 int v = 0; |
118 for (int y = 0; y < height; y++) | |
119 { | |
120 uint16_t *p = reinterpret_cast<uint16_t*>(&image[0] + y * pitch); | |
121 for (int x = 0; x < width; x++, p++, v++) | |
122 { | |
123 *p = v; | |
124 } | |
125 } | |
126 | |
1916 | 127 Orthanc::ImageAccessor accessor; |
128 accessor.AssignReadOnly(Orthanc::PixelFormat_Grayscale16, width, height, pitch, &image[0]); | |
129 w.WriteToFile("UnitTestsResults/Gray16Pattern.png", accessor); | |
639
51892be15618
fix for big endian architectures
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
632
diff
changeset
|
130 |
51892be15618
fix for big endian architectures
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
632
diff
changeset
|
131 std::string f, md5; |
2140 | 132 Orthanc::SystemToolbox::ReadFile(f, "UnitTestsResults/Gray16Pattern.png"); |
639
51892be15618
fix for big endian architectures
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
632
diff
changeset
|
133 Orthanc::Toolbox::ComputeMD5(md5, f); |
51892be15618
fix for big endian architectures
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
632
diff
changeset
|
134 ASSERT_EQ("0785866a08bf0a02d2eeff87f658571c", md5); |
368 | 135 } |
455 | 136 |
137 TEST(PngWriter, EndToEnd) | |
138 { | |
139 Orthanc::PngWriter w; | |
1492 | 140 unsigned int width = 256; |
141 unsigned int height = 256; | |
142 unsigned int pitch = width * 2 + 16; | |
455 | 143 |
144 std::vector<uint8_t> image(height * pitch); | |
145 | |
146 int v = 0; | |
1492 | 147 for (unsigned int y = 0; y < height; y++) |
455 | 148 { |
149 uint16_t *p = reinterpret_cast<uint16_t*>(&image[0] + y * pitch); | |
1492 | 150 for (unsigned int x = 0; x < width; x++, p++, v++) |
455 | 151 { |
152 *p = v; | |
153 } | |
154 } | |
155 | |
1916 | 156 Orthanc::ImageAccessor accessor; |
157 accessor.AssignReadOnly(Orthanc::PixelFormat_Grayscale16, width, height, pitch, &image[0]); | |
158 | |
455 | 159 std::string s; |
1916 | 160 w.WriteToMemory(s, accessor); |
455 | 161 |
709 | 162 { |
163 Orthanc::PngReader r; | |
164 r.ReadFromMemory(s); | |
455 | 165 |
710 | 166 ASSERT_EQ(r.GetFormat(), Orthanc::PixelFormat_Grayscale16); |
709 | 167 ASSERT_EQ(r.GetWidth(), width); |
168 ASSERT_EQ(r.GetHeight(), height); | |
455 | 169 |
709 | 170 v = 0; |
1492 | 171 for (unsigned int y = 0; y < height; y++) |
709 | 172 { |
797
37adac56017a
ImageAccessor abstraction
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
711
diff
changeset
|
173 const uint16_t *p = reinterpret_cast<const uint16_t*>((const uint8_t*) r.GetConstBuffer() + y * r.GetPitch()); |
37adac56017a
ImageAccessor abstraction
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
711
diff
changeset
|
174 ASSERT_EQ(p, r.GetConstRow(y)); |
1492 | 175 for (unsigned int x = 0; x < width; x++, p++, v++) |
709 | 176 { |
177 ASSERT_EQ(*p, v); | |
178 } | |
179 } | |
180 } | |
181 | |
455 | 182 { |
2140 | 183 Orthanc::TemporaryFile tmp; |
184 Orthanc::SystemToolbox::WriteFile(s, tmp.GetPath()); | |
709 | 185 |
186 Orthanc::PngReader r2; | |
187 r2.ReadFromFile(tmp.GetPath()); | |
188 | |
710 | 189 ASSERT_EQ(r2.GetFormat(), Orthanc::PixelFormat_Grayscale16); |
709 | 190 ASSERT_EQ(r2.GetWidth(), width); |
191 ASSERT_EQ(r2.GetHeight(), height); | |
710 | 192 |
193 v = 0; | |
1492 | 194 for (unsigned int y = 0; y < height; y++) |
455 | 195 { |
797
37adac56017a
ImageAccessor abstraction
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
711
diff
changeset
|
196 const uint16_t *p = reinterpret_cast<const uint16_t*>((const uint8_t*) r2.GetConstBuffer() + y * r2.GetPitch()); |
37adac56017a
ImageAccessor abstraction
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
711
diff
changeset
|
197 ASSERT_EQ(p, r2.GetConstRow(y)); |
1492 | 198 for (unsigned int x = 0; x < width; x++, p++, v++) |
709 | 199 { |
200 ASSERT_EQ(*p, v); | |
201 } | |
455 | 202 } |
203 } | |
204 } | |
1602 | 205 |
206 | |
207 | |
208 | |
209 TEST(JpegWriter, Basic) | |
210 { | |
1604 | 211 std::string s; |
212 | |
1602 | 213 { |
2107 | 214 Orthanc::Image img(Orthanc::PixelFormat_Grayscale8, 16, 16, false); |
1604 | 215 for (unsigned int y = 0, value = 0; y < img.GetHeight(); y++) |
1602 | 216 { |
1608
adc6a5704cdb
OrthancPluginConvertPixelFormat
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1604
diff
changeset
|
217 uint8_t* p = reinterpret_cast<uint8_t*>(img.GetRow(y)); |
1604 | 218 for (unsigned int x = 0; x < img.GetWidth(); x++, p++) |
219 { | |
220 *p = value++; | |
221 } | |
222 } | |
223 | |
224 Orthanc::JpegWriter w; | |
1608
adc6a5704cdb
OrthancPluginConvertPixelFormat
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1604
diff
changeset
|
225 w.WriteToFile("UnitTestsResults/hello.jpg", img); |
1604 | 226 |
1608
adc6a5704cdb
OrthancPluginConvertPixelFormat
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1604
diff
changeset
|
227 w.WriteToMemory(s, img); |
2140 | 228 Orthanc::SystemToolbox::WriteFile(s, "UnitTestsResults/hello2.jpg"); |
1604 | 229 |
230 std::string t; | |
2140 | 231 Orthanc::SystemToolbox::ReadFile(t, "UnitTestsResults/hello.jpg"); |
1604 | 232 ASSERT_EQ(s.size(), t.size()); |
233 ASSERT_EQ(0, memcmp(s.c_str(), t.c_str(), s.size())); | |
234 } | |
235 | |
236 { | |
237 Orthanc::JpegReader r1, r2; | |
238 r1.ReadFromFile("UnitTestsResults/hello.jpg"); | |
1970 | 239 ASSERT_EQ(16u, r1.GetWidth()); |
240 ASSERT_EQ(16u, r1.GetHeight()); | |
1604 | 241 |
242 r2.ReadFromMemory(s); | |
1970 | 243 ASSERT_EQ(16u, r2.GetWidth()); |
244 ASSERT_EQ(16u, r2.GetHeight()); | |
1604 | 245 |
246 for (unsigned int y = 0; y < r1.GetHeight(); y++) | |
247 { | |
248 const uint8_t* p1 = reinterpret_cast<const uint8_t*>(r1.GetConstRow(y)); | |
249 const uint8_t* p2 = reinterpret_cast<const uint8_t*>(r2.GetConstRow(y)); | |
250 for (unsigned int x = 0; x < r1.GetWidth(); x++) | |
251 { | |
252 ASSERT_EQ(*p1, *p2); | |
253 } | |
1602 | 254 } |
255 } | |
256 } | |
1610
2dff2bdffdb8
font support within Orthanc
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1608
diff
changeset
|
257 |
2dff2bdffdb8
font support within Orthanc
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1608
diff
changeset
|
258 |
2dff2bdffdb8
font support within Orthanc
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1608
diff
changeset
|
259 TEST(Font, Basic) |
2dff2bdffdb8
font support within Orthanc
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1608
diff
changeset
|
260 { |
2107 | 261 Orthanc::Image s(Orthanc::PixelFormat_RGB24, 640, 480, false); |
1610
2dff2bdffdb8
font support within Orthanc
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1608
diff
changeset
|
262 memset(s.GetBuffer(), 0, s.GetPitch() * s.GetHeight()); |
2dff2bdffdb8
font support within Orthanc
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1608
diff
changeset
|
263 |
1970 | 264 ASSERT_GE(1u, Orthanc::Configuration::GetFontRegistry().GetSize()); |
1611
5e9b2aac8b89
fix for visual studio
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1610
diff
changeset
|
265 Orthanc::Configuration::GetFontRegistry().GetFont(0).Draw(s, "Hello world É\n\rComment ça va ?\nq", 50, 60, 255, 0, 0); |
1610
2dff2bdffdb8
font support within Orthanc
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1608
diff
changeset
|
266 |
2dff2bdffdb8
font support within Orthanc
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1608
diff
changeset
|
267 Orthanc::PngWriter w; |
2dff2bdffdb8
font support within Orthanc
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1608
diff
changeset
|
268 w.WriteToFile("UnitTestsResults/font.png", s); |
2dff2bdffdb8
font support within Orthanc
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1608
diff
changeset
|
269 } |
2dff2bdffdb8
font support within Orthanc
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1608
diff
changeset
|
270 |