ViewSolutions
1.0.100.30ae2aa
View solutions of qml for quasarapp projects
Toggle main menu visibility
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
10
#include "
viewsolutions_global.h
"
11
#include <QColor>
12
#include <QObject>
13
14
namespace
ViewSolutions
{
15
34
class
VIEWSOLUTION_EXPORT
ColorPicker
35
{
36
public
:
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
ViewSolutions::ColorPicker::pick
QColor pick(int x, int y, const QImage &img) const
pick Get color from point.
Definition
colorpicker.cpp:19
ViewSolutions::ColorPicker::ColorPicker
ColorPicker()
Definition
colorpicker.cpp:15
ViewSolutions
The ViewSolutions namespace.
Definition
avatargenerator.cpp:14
viewsolutions_global.h
VIEWSOLUTION_EXPORT
#define VIEWSOLUTION_EXPORT
VIEWSOLUTION_EXPORT marks a symbol as part of the public ViewSolutions API.
Definition
viewsolutions_global.h:33
ViewSolutions
src
colorpicker.h
Generated by
1.18.0