author | leseb <leseb> | 2002-06-27 08:42:50 (UTC) |
---|---|---|
committer | leseb <leseb> | 2002-06-27 08:42:50 (UTC) |
commit | 596749dc52cc89b5325f9089b79d0b9cc8240682 (patch) (unidiff) | |
tree | 7d400323444c6ea5c1bfb5d9c2f8dfb3a2a01435 /noncore/graphics/drawpad/filltool.h | |
parent | 4080b87bd8f9a76217ba8ae06f2a1b2ca9bcc285 (diff) | |
download | opie-596749dc52cc89b5325f9089b79d0b9cc8240682.zip opie-596749dc52cc89b5325f9089b79d0b9cc8240682.tar.gz opie-596749dc52cc89b5325f9089b79d0b9cc8240682.tar.bz2 |
Try to take AA into account when filling
Diffstat (limited to 'noncore/graphics/drawpad/filltool.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/graphics/drawpad/filltool.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/noncore/graphics/drawpad/filltool.h b/noncore/graphics/drawpad/filltool.h index eaf9a27..03ee489 100644 --- a/noncore/graphics/drawpad/filltool.h +++ b/noncore/graphics/drawpad/filltool.h | |||
@@ -27,13 +27,17 @@ public: | |||
27 | void mousePressEvent(QMouseEvent* e); | 27 | void mousePressEvent(QMouseEvent* e); |
28 | void mouseReleaseEvent(QMouseEvent* e); | 28 | void mouseReleaseEvent(QMouseEvent* e); |
29 | void mouseMoveEvent(QMouseEvent* e); | 29 | void mouseMoveEvent(QMouseEvent* e); |
30 | 30 | ||
31 | private: | 31 | private: |
32 | void fillLine(int x, int y); | 32 | void fillLine(int x, int y); |
33 | void fillMaskLine(int x, int y); | ||
34 | void setInterpolatedPixel(int x, int y); | ||
35 | int rgbDistance(QRgb rgb1, QRgb rgb2); | ||
33 | 36 | ||
34 | QImage m_image; | 37 | QImage m_image; |
38 | QImage m_mask; | ||
35 | QRgb m_fillRgb; | 39 | QRgb m_fillRgb; |
36 | QRgb m_oldRgb; | 40 | QRgb m_oldRgb; |
37 | }; | 41 | }; |
38 | 42 | ||
39 | #endif // FILLTOOL_H | 43 | #endif // FILLTOOL_H |