ViewSolutions 1.0.100.30ae2aa
View solutions of qml for quasarapp projects
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
35{
36public:
37 explicit ColorPicker();
38
46 QColor pick(int x, int y, const QImage &img) const;
47
54 QColor pick(const QImage &img, int density = 5) const;
55
61 QColor pick(const QString &img) const;
62
63};
64}
65
66#endif // COLORPICKER_H
QColor pick(int x, int y, const QImage &img) const
pick Get color from point.
The ViewSolutions namespace.
#define VIEWSOLUTION_EXPORT
VIEWSOLUTION_EXPORT marks a symbol as part of the public ViewSolutions API.