comparison Framework/Inputs/OpenSlidePyramid.h @ 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 f611fb47d0e8
comparison
equal deleted inserted replaced
314:9dc7f1e8716d 315:072968f00d26
32 { 32 {
33 private: 33 private:
34 OpenSlideLibrary::Image image_; 34 OpenSlideLibrary::Image image_;
35 unsigned int tileWidth_; 35 unsigned int tileWidth_;
36 unsigned int tileHeight_; 36 unsigned int tileHeight_;
37 uint8_t backgroundColor_[3];
37 38
38 protected: 39 protected:
39 virtual void ReadRegion(Orthanc::ImageAccessor& target, 40 virtual void ReadRegion(Orthanc::ImageAccessor& target,
40 unsigned int level, 41 unsigned int level,
41 unsigned int x, 42 unsigned int x,
81 return Orthanc::PhotometricInterpretation_RGB; 82 return Orthanc::PhotometricInterpretation_RGB;
82 } 83 }
83 84
84 bool LookupImagedVolumeSize(float& width, 85 bool LookupImagedVolumeSize(float& width,
85 float& height) const; 86 float& height) const;
87
88 void SetBackgroundColor(uint8_t red,
89 uint8_t green,
90 uint8_t blue);
86 }; 91 };
87 } 92 }