class QgsRasterTransparency { %TypeHeaderCode #include %End public: QgsRasterTransparency(); // // Structs to hold transparent pixel vlaues // struct TransparentThreeValuePixel { double red; double green; double blue; double percentTransparent; }; struct TransparentSingleValuePixel { double pixelValue; double percentTransparent; }; // // Initializer, Accessor and mutator for transparency tables. // /** \brief Mutator for transparentSingleValuePixelList */ QList transparentSingleValuePixelList(); /** \brief Mutator for transparentThreeValuePixelList */ QList transparentThreeValuePixelList(); /** \brief Reset to the transparency list to a single value */ void initializeTransparentPixelList(double); /** \brief Reset to the transparency list to a single value */ void initializeTransparentPixelList(double, double, double); /** \brief Accessor for transparentSingleValuePixelList */ void setTransparentSingleValuePixelList(QList); /** \brief Accessor for transparentThreeValuePixelList */ void setTransparentThreeValuePixelList(QList); /** \brief Returns the transparency value for a single value Pixel */ int alphaValue(double, int theGlobalTransparency=255); /** \brief Return the transparency value for a RGB Pixel */ int alphaValue(double, double, double, int theGlobalTransparency=255); };