A color and the position the color will be placed on a color ramp. More...
| Header | #include <Color |
| Since | Esri |
| Inherits | Esri |
Public Functions
| Color | |
| virtual | ~ |
| QColor | color() const |
| double | position() const |
Detailed Description
This object is used for creating custom color ramps.
See also ColorRamp::createFromColorStops(const QList<Esri::ArcGISRuntime::ColorStop*>&, int, QObject*).
Member Function Documentation
ColorStop::ColorStop (const QColor &color, double position, QObject *parent = nullptr)
Creates a ColorStop
- color - The color of this ColorStop.
- position - The position of this ColorStop. The value must be in the interval [0.0, 1.0].
- parent - The optional parent QObject.
[override virtual noexcept] ColorStop::~ColorStop ()
Destructor.
QColor ColorStop::color() const
Returns the shaded color of a pixel with a value at position on the color ramp.
double ColorStop::position() const
Returns the position the color will be placed on a color ramp. The value must be in the interval [0.0, 1.0].
The absolute value for the position is calculated using the minimum and maximum values from MinMaxStretchParameters, using
- minValue + (1.0 - position) * maxValue.