ViewSolutions
|
The ColorPicker class - This class provide methods of get generals colors from images. More...
#include <colorpicker.h>
Public Member Functions | |
ColorPicker () | |
QColor | pick (int x, int y, const QImage &img) const |
pick Get color from point. | |
QColor | pick (const QImage &img, int density=5) const |
pick Color from all image. This method get pixels from grid of image. | |
QColor | pick (const QString &img) const |
pick This is override function for qml. | |
The ColorPicker class - This class provide methods of get generals colors from images.
Definition at line 19 of file colorpicker.h.
|
explicit |
Definition at line 15 of file colorpicker.cpp.
QColor ViewSolutions::ColorPicker::pick | ( | const QImage & | img, |
int | density = 5 |
||
) | const |
pick Color from all image. This method get pixels from grid of image.
img | Source image. |
density | Count of checked pixels on one plane and planes count, default 5. |
Definition at line 23 of file colorpicker.cpp.
QColor ViewSolutions::ColorPicker::pick | ( | const QString & | img | ) | const |
pick This is override function for qml.
img | Path to image. |
Definition at line 53 of file colorpicker.cpp.
QColor ViewSolutions::ColorPicker::pick | ( | int | x, |
int | y, | ||
const QImage & | img | ||
) | const |
pick Get color from point.
Definition at line 19 of file colorpicker.cpp.