18 #ifndef QGSBRIGHTNESSCONTRASTFILTER_H
19 #define QGSBRIGHTNESSCONTRASTFILTER_H
45 void setBrightness(
int brightness ) { mBrightness = qBound( -255, brightness, 255 ); }
48 void setContrast(
int contrast ) { mContrast = qBound( -100, contrast, 100 ); }
51 void writeXML( QDomDocument& doc, QDomElement& parentElem )
const override;
54 void readXML(
const QDomElement& filterElem )
override;
58 int adjustColorComponent(
int colorComponent,
int alpha,
int brightness,
double contrastFactor )
const;
67 #endif // QGSBRIGHTNESSCONTRASTFILTER_H