Mercurial > hg > orthanc-stone
diff Framework/Radiography/RadiographyTextLayer.cpp @ 1196:a5f2a6b04a31
RadiographyScene: windowing is now only applied to the Dicom layer
author | Alain Mazy <alain@mazy.be> |
---|---|
date | Wed, 27 Nov 2019 17:51:33 +0100 |
parents | f417a0ae282b |
children | ab958fd99b07 |
line wrap: on
line diff
--- a/Framework/Radiography/RadiographyTextLayer.cpp Tue Nov 26 16:32:29 2019 +0100 +++ b/Framework/Radiography/RadiographyTextLayer.cpp Wed Nov 27 17:51:33 2019 +0100 @@ -30,7 +30,7 @@ Orthanc::EmbeddedResources::FileResourceId RadiographyTextLayer::fontResourceId_; void RadiographyTextLayer::LoadText(const std::string& utf8, - size_t fontSize, + unsigned int fontSize, uint8_t foreground) { if (!fontHasBeenConfigured_) @@ -45,5 +45,6 @@ SetAlpha(TextRenderer::Render(fontResourceId_, fontSize_, text_)); + SetForegroundValue(foreground * 256.0f); } }