comparison 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
comparison
equal deleted inserted replaced
314:9dc7f1e8716d 315:072968f00d26
1107 1107
1108 std::unique_ptr<OrthancWSI::OpenSlidePyramid> openslide( 1108 std::unique_ptr<OrthancWSI::OpenSlidePyramid> openslide(
1109 new OrthancWSI::OpenSlidePyramid(path, parameters.GetTargetTileWidth(512), 1109 new OrthancWSI::OpenSlidePyramid(path, parameters.GetTargetTileWidth(512),
1110 parameters.GetTargetTileHeight(512))); 1110 parameters.GetTargetTileHeight(512)));
1111 1111
1112 openslide->SetBackgroundColor(parameters.GetBackgroundColorRed(),
1113 parameters.GetBackgroundColorGreen(),
1114 parameters.GetBackgroundColorBlue());
1115
1112 float volumeWidth, volumeHeight; 1116 float volumeWidth, volumeHeight;
1113 if (openslide->LookupImagedVolumeSize(volumeWidth, volumeHeight)) 1117 if (openslide->LookupImagedVolumeSize(volumeWidth, volumeHeight))
1114 { 1118 {
1115 if (!volume.HasWidth()) 1119 if (!volume.HasWidth())
1116 { 1120 {