|
GXDE Bernese
|
Public Member Functions | |
| void | Accumulate (QRgb pixel, int weight) |
| Add or subtract one premultiplied pixel from the running sum. | |
| QRgb | Average (int sample_count) const |
| Compute the averaged premultiplied pixel. | |
Public Attributes | |
| qint64 | red = 0 |
| qint64 | green = 0 |
| qint64 | blue = 0 |
| qint64 | alpha = 0 |
|
inline |
Add or subtract one premultiplied pixel from the running sum.
| pixel | Premultiplied pixel channels. |
| weight | Use 1 to add or -1 to remove a sample. |
|
inline |
Compute the averaged premultiplied pixel.
| sample_count | Positive number of samples represented by the sum. |