Mercurial > hg > orthanc
comparison Core/ImageFormats/Font.cpp @ 1611:5e9b2aac8b89
fix for visual studio
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 04 Sep 2015 16:30:42 +0200 |
parents | 2dff2bdffdb8 |
children |
comparison
equal
deleted
inserted
replaced
1610:2dff2bdffdb8 | 1611:5e9b2aac8b89 |
---|---|
270 } | 270 } |
271 } | 271 } |
272 } | 272 } |
273 | 273 |
274 | 274 |
275 void Font::DrawText(ImageAccessor& target, | 275 void Font::Draw(ImageAccessor& target, |
276 const std::string& utf8, | 276 const std::string& utf8, |
277 int x, | 277 int x, |
278 int y, | 278 int y, |
279 uint8_t grayscale) const | 279 uint8_t grayscale) const |
280 { | 280 { |
281 uint8_t color[4] = { grayscale, grayscale, grayscale, 255 }; | 281 uint8_t color[4] = { grayscale, grayscale, grayscale, 255 }; |
282 DrawInternal(target, utf8, x, y, color); | 282 DrawInternal(target, utf8, x, y, color); |
283 } | 283 } |
284 | 284 |
285 | 285 |
286 void Font::DrawText(ImageAccessor& target, | 286 void Font::Draw(ImageAccessor& target, |
287 const std::string& utf8, | 287 const std::string& utf8, |
288 int x, | 288 int x, |
289 int y, | 289 int y, |
290 uint8_t r, | 290 uint8_t r, |
291 uint8_t g, | 291 uint8_t g, |
292 uint8_t b) const | 292 uint8_t b) const |
293 { | 293 { |
294 uint8_t color[4] = { r, g, b, 255 }; | 294 uint8_t color[4] = { r, g, b, 255 }; |
295 DrawInternal(target, utf8, x, y, color); | 295 DrawInternal(target, utf8, x, y, color); |
296 } | 296 } |
297 | 297 |