KSaneCore

gammaoption.h
1/*
2 * SPDX-FileCopyrightText: 2009 Kare Sars <kare dot sars at iki dot fi>
3 *
4 * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5 */
6
7#ifndef KSANE_GAMMA_OPTION_H
8#define KSANE_GAMMA_OPTION_H
9
10#include "baseoption.h"
11
12namespace KSaneCore
13{
14
15class GammaOption : public BaseOption
16{
18
19public:
20 GammaOption(const SANE_Handle handle, const int index);
21
22 void readValue() override;
23
24 QVariant maximumValue() const override;
25 QVariant value() const override;
26 int valueSize() const override;
27 QString valueAsString() const override;
28
29public Q_SLOTS:
30 bool setValue(const QVariant & value) override;
31
32private:
33 void calculateGTwriteData();
34 void calculateBCGwriteData();
35
36 int m_brightness;
37 int m_contrast;
38 int m_gamma;
39 QVector<int> m_gammaTable;
40 int m_gammaTableMax;
41};
42
43} // namespace KSane
44
45#endif // KSANE_GAMMA_OPTION_H
Q_OBJECTQ_OBJECT
Q_SLOTSQ_SLOTS
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 24 2024 11:49:00 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.