36 return static_cast<int>( value );
DataType
Raster data types.
@ Byte
Eight bit unsigned integer (quint8).
bool isValueInDisplayableRange(double) override
A customizable method to indicate if a pixel's value is within the displayable range.
int enhance(double) override
A customizable method that takes in a double value and returns a int between 0 and 255.
QgsClipToMinMaxEnhancement(Qgis::DataType, double, double)
QgsContrastEnhancementFunction(Qgis::DataType, double, double)
double mMaximumValue
User defineable maximum value for the band, used for enhanceContrasting.
double mMinimumValuePossible
double mMaximumValuePossible
double minimumValue() const
Returns the minimum value.
double maximumValue() const
Returns the maximum value.
Qgis::DataType mQgsRasterDataType
Data type of the band.