ViewSolutions
Loading...
Searching...
No Matches
colorpicker.h
Go to the documentation of this file.
1//#
2//# Copyright (C) 2020-2025 QuasarApp.
3//# Distributed under the GPLv3 software license, see the accompanying
4//# Everyone is permitted to copy and distribute verbatim copies
5//# of this license document, but changing it is not allowed.
6//#
7
8#ifndef COLORPICKER_H
9#define COLORPICKER_H
11#include <QColor>
12#include <QObject>
13
14namespace ViewSolutions {
15
20{
21public:
22 explicit ColorPicker();
23
31 QColor pick(int x, int y, const QImage &img) const;
32
39 QColor pick(const QImage &img, int density = 5) const;
40
46 QColor pick(const QString &img) const;
47
48};
49}
50
51#endif // COLORPICKER_H
The ColorPicker class - This class provide methods of get generals colors from images.
Definition colorpicker.h:20
the ViewSolutions namespace
#define VIEWSOLUTION_EXPORT