mirror of
https://github.com/QuasarApp/ViewSolutions.git
synced 2025-04-26 09:44:39 +00:00
ref #1 header correction
This commit is contained in:
parent
a21129f657
commit
acf72d04f5
@ -7,7 +7,7 @@
|
|||||||
namespace ViewSolutions {
|
namespace ViewSolutions {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief The ColorPicker class - this class provide methods of get generals colors from images.
|
* @brief The ColorPicker class - This class provide methods of get generals colors from images.
|
||||||
*/
|
*/
|
||||||
class LOGINVIEW_EXPORT ColorPicker
|
class LOGINVIEW_EXPORT ColorPicker
|
||||||
{
|
{
|
||||||
@ -15,26 +15,26 @@ public:
|
|||||||
explicit ColorPicker();
|
explicit ColorPicker();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief pick - get color from point
|
* @brief pick Get color from point.
|
||||||
* @arg x
|
* @arg x This is x coordinate.
|
||||||
* @arg y
|
* @arg y This is y coordinate.
|
||||||
* @arg img - source image
|
* @arg img Source image.
|
||||||
* @return color of point.
|
* @return Color of point.
|
||||||
*/
|
*/
|
||||||
QColor pick(int x, int y, const QImage &img) const;
|
QColor pick(int x, int y, const QImage &img) const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief pick - color from all image. This method get pixels from grid of image
|
* @brief pick Color from all image. This method get pixels from grid of image.
|
||||||
* @param img - source image
|
* @param img Source image.
|
||||||
* @param density - counnt of checked pixels on one plane and planes count. @default 5
|
* @param density Count of checked pixels on one plane and planes count, default 5.
|
||||||
* @return General color of image
|
* @return General color of image.
|
||||||
*/
|
*/
|
||||||
QColor pick(const QImage &img, int density = 5) const;
|
QColor pick(const QImage &img, int density = 5) const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief pick - this is override function for qml
|
* @brief pick This is override function for qml.
|
||||||
* @param img - path to image
|
* @param img Path to image.
|
||||||
* @return General color of image
|
* @return General color of image.
|
||||||
*/
|
*/
|
||||||
QColor pick(const QString &img) const;
|
QColor pick(const QString &img) const;
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ class QQmlApplicationEngine;
|
|||||||
namespace ViewSolutions {
|
namespace ViewSolutions {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief The QMLColorPicker class - qml wraper for ColorPicker clas
|
* @brief The QMLColorPicker class - Qml wrapper for ColorPicker class.
|
||||||
*/
|
*/
|
||||||
class LOGINVIEW_EXPORT QMLColorPicker : public QObject, private ColorPicker
|
class LOGINVIEW_EXPORT QMLColorPicker : public QObject, private ColorPicker
|
||||||
{
|
{
|
||||||
@ -17,14 +17,14 @@ public:
|
|||||||
explicit QMLColorPicker(QObject *parent = nullptr);
|
explicit QMLColorPicker(QObject *parent = nullptr);
|
||||||
/**
|
/**
|
||||||
* @brief instance This method return instance object of the QMLColorPicker setvice.
|
* @brief instance This method return instance object of the QMLColorPicker setvice.
|
||||||
* @return static instance of this ColorPicker
|
* @return Static instance of this ColorPicker.
|
||||||
*/
|
*/
|
||||||
static QMLColorPicker* instance();
|
static QMLColorPicker* instance();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief pick This is override function for qml
|
* @brief pick This is override function for qml.
|
||||||
* @param img This is path to image
|
* @param img This is path to image.
|
||||||
* @return General color of image
|
* @return General color of image.
|
||||||
*/
|
*/
|
||||||
Q_INVOKABLE QColor pick(const QString &img) const;
|
Q_INVOKABLE QColor pick(const QString &img) const;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user