diff Applications/Dicomizer.cpp @ 315:072968f00d26

support of transparency in OpenSlide
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 09 Sep 2024 20:12:14 +0200
parents 0683312e21ba
children 9ce06c06c984
line wrap: on
line diff
--- a/Applications/Dicomizer.cpp	Wed Aug 14 15:52:13 2024 +0200
+++ b/Applications/Dicomizer.cpp	Mon Sep 09 20:12:14 2024 +0200
@@ -1109,6 +1109,10 @@
       new OrthancWSI::OpenSlidePyramid(path, parameters.GetTargetTileWidth(512),
                                        parameters.GetTargetTileHeight(512)));
 
+    openslide->SetBackgroundColor(parameters.GetBackgroundColorRed(),
+                                  parameters.GetBackgroundColorGreen(),
+                                  parameters.GetBackgroundColorBlue());
+
     float volumeWidth, volumeHeight;
     if (openslide->LookupImagedVolumeSize(volumeWidth, volumeHeight))
     {