comparison Applications/Samples/SingleFrameEditorApplication.h @ 1224:37bc7f115f81 broker

integration mainline->broker
author Sebastien Jodogne <s.jodogne@gmail.com>
date Sat, 07 Dec 2019 18:45:37 +0100
parents 54cbffabdc45 04fd875b91f4
children 0ca50d275b9a
comparison
equal deleted inserted replaced
1222:21c2b0eee53c 1224:37bc7f115f81
506 RadiographyLayer& layer = scene_->LoadAlphaBitmap(renderedTextAlpha.release(), NULL); 506 RadiographyLayer& layer = scene_->LoadAlphaBitmap(renderedTextAlpha.release(), NULL);
507 dynamic_cast<RadiographyAlphaLayer&>(layer).SetForegroundValue(200.0f * 256.0f); 507 dynamic_cast<RadiographyAlphaLayer&>(layer).SetForegroundValue(200.0f * 256.0f);
508 } 508 }
509 509
510 { 510 {
511 RadiographyTextLayer::SetFont(Orthanc::EmbeddedResources::UBUNTU_FONT); 511 RadiographyTextLayer::RegisterFont("ubuntu", Orthanc::EmbeddedResources::UBUNTU_FONT);
512 RadiographyLayer& layer = scene_->LoadText("Hello\nworld", 20, 128, NULL); 512 RadiographyLayer& layer = scene_->LoadText("Hello\nworld", "ubuntu", 20, 128, NULL, false);
513 layer.SetResizeable(true); 513 layer.SetResizeable(true);
514 } 514 }
515 515
516 { 516 {
517 RadiographyLayer& layer = scene_->LoadTestBlock(100, 50, NULL); 517 RadiographyLayer& layer = scene_->LoadTestBlock(100, 50, NULL);