Mercurial > hg > orthanc-wsi
diff Framework/Inputs/SingleLevelDecodedPyramid.h @ 327:4e25eb77cd1d
implementation of padding for IIIF
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 17 Oct 2024 17:55:49 +0200 |
parents | 9947e70cbcea |
children |
line wrap: on
line diff
--- a/Framework/Inputs/SingleLevelDecodedPyramid.h Thu Oct 17 17:24:56 2024 +0200 +++ b/Framework/Inputs/SingleLevelDecodedPyramid.h Thu Oct 17 17:55:49 2024 +0200 @@ -33,6 +33,10 @@ Orthanc::ImageAccessor image_; unsigned int tileWidth_; unsigned int tileHeight_; + unsigned int padding_; + uint8_t backgroundRed_; + uint8_t backgroundGreen_; + uint8_t backgroundBlue_; protected: void SetImage(const Orthanc::ImageAccessor& image) @@ -48,11 +52,7 @@ public: SingleLevelDecodedPyramid(unsigned int tileWidth, - unsigned int tileHeight) : - tileWidth_(tileWidth), - tileHeight_(tileHeight) - { - } + unsigned int tileHeight); virtual unsigned int GetTileWidth(unsigned int level) const ORTHANC_OVERRIDE { @@ -80,9 +80,9 @@ virtual Orthanc::PhotometricInterpretation GetPhotometricInterpretation() const ORTHANC_OVERRIDE; - void SetPadding(unsigned int paddingAlignement, - uint8_t paddingRed, - uint8_t paddingGreen, - uint8_t paddingBlue); + void SetPadding(unsigned int padding, + uint8_t backgroundRed, + uint8_t backgroundGreen, + uint8_t backgroundBlue); }; }