ViewSolutions
Loading...
Searching...
No Matches
ViewSolutions::ColorPicker Class Reference

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.
 

Detailed Description

The ColorPicker class - This class provide methods of get generals colors from images.

Definition at line 19 of file colorpicker.h.

Inheritance diagram for ViewSolutions::ColorPicker:
Inheritance graph
Collaboration diagram for ViewSolutions::ColorPicker:
Collaboration graph

Constructor & Destructor Documentation

◆ ColorPicker()

ViewSolutions::ColorPicker::ColorPicker ( )
explicit

Definition at line 15 of file colorpicker.cpp.

Member Function Documentation

◆ pick() [1/3]

QColor ViewSolutions::ColorPicker::pick ( const QImage &  img,
int  density = 5 
) const

pick Color from all image. This method get pixels from grid of image.

Parameters
imgSource image.
densityCount of checked pixels on one plane and planes count, default 5.
Returns
General color of image.

Definition at line 23 of file colorpicker.cpp.

◆ pick() [2/3]

QColor ViewSolutions::ColorPicker::pick ( const QString &  img) const

pick This is override function for qml.

Parameters
imgPath to image.
Returns
General color of image.

Definition at line 53 of file colorpicker.cpp.

Here is the call graph for this function:

◆ pick() [3/3]

QColor ViewSolutions::ColorPicker::pick ( int  x,
int  y,
const QImage &  img 
) const

pick Get color from point.

  • x This is x coordinate.
  • y This is y coordinate.
  • img Source image.
    Returns
    Color of point.

Definition at line 19 of file colorpicker.cpp.

Here is the caller graph for this function:

The documentation for this class was generated from the following files: