Mercurial > hg > orthanc-stone
diff Framework/Radiography/RadiographyTextLayer.cpp @ 1201:ab958fd99b07
RadiographyScene fixes
author | Alain Mazy <alain@mazy.be> |
---|---|
date | Fri, 29 Nov 2019 16:21:24 +0100 |
parents | a5f2a6b04a31 |
children | 9ee6b28f53e8 |
line wrap: on
line diff
--- a/Framework/Radiography/RadiographyTextLayer.cpp Thu Nov 28 18:28:15 2019 +0100 +++ b/Framework/Radiography/RadiographyTextLayer.cpp Fri Nov 29 16:21:24 2019 +0100 @@ -29,7 +29,7 @@ bool RadiographyTextLayer::fontHasBeenConfigured_ = false; Orthanc::EmbeddedResources::FileResourceId RadiographyTextLayer::fontResourceId_; - void RadiographyTextLayer::LoadText(const std::string& utf8, + void RadiographyTextLayer::SetText(const std::string& utf8, unsigned int fontSize, uint8_t foreground) { @@ -45,6 +45,8 @@ SetAlpha(TextRenderer::Render(fontResourceId_, fontSize_, text_)); + SetForegroundValue(foreground * 256.0f); } + }