diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2013-07-13 16:12:32 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-07-18 12:00:12 -0700 |
commit | fc84f8868d6cad30f6e250b3115c1ce1f574e1b5 (patch) | |
tree | c69e1f4eb1f212bd86aba3bf3e0879c1c3a32b87 /qt-ui/printlayout.h | |
parent | b241b7c06a970578152154313c9c10627882c292 (diff) | |
download | subsurface-fc84f8868d6cad30f6e250b3115c1ce1f574e1b5.tar.gz |
Print: add method to convert profile to grayscale
(experimental)
Add the method PrintLayout::convertPixmapToGrayscale()
to convert a rendered profile pixmap to grayscale.
It will probably be faster to have
ProfileGraphicsView render in grayscale under certain
conditions (and use a specific color table) instead -
e.g.:
ProfileGraphicsView::setPrintMode(bool printMode,
bool useGrayScale);
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Diffstat (limited to 'qt-ui/printlayout.h')
-rw-r--r-- | qt-ui/printlayout.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-ui/printlayout.h b/qt-ui/printlayout.h index cbb1e42ac..7a1922e4a 100644 --- a/qt-ui/printlayout.h +++ b/qt-ui/printlayout.h @@ -34,6 +34,7 @@ private: QString insertTableHeadingCol(int) const; QString insertTableDataRow(struct dive *) const; QString insertTableDataCol(QString) const; + QPixmap convertPixmapToGrayscale(QPixmap) const; }; #endif |