1 | /*************************************************************************** |
2 | colorsim.h - description |
3 | ------------------- |
4 | begin : Mon Jan 21 14:54:37 CST 2008 |
5 | copyright : (C) 2008 by Matthew Woehlke |
6 | email : mw_triad@users.sourceforge.net |
7 | ***************************************************************************/ |
8 | |
9 | /*************************************************************************** |
10 | * * |
11 | * This program is free software; you can redistribute it and/or modify * |
12 | * it under the terms of the GNU General Public License as published by * |
13 | * the Free Software Foundation; either version 2 of the License, or * |
14 | * (at your option) any later version. * |
15 | * * |
16 | ***************************************************************************/ |
17 | |
18 | #ifndef KMAGCOLORSIM_H |
19 | #define KMAGCOLORSIM_H |
20 | |
21 | // include files for Qt |
22 | #include <QtGui/QImage> |
23 | #include <QtGui/QPixmap> |
24 | |
25 | namespace ColorSim { |
26 | /** |
27 | * Recolor a pixmap according to the specified simulation mode: |
28 | * 1 - Protanopia |
29 | * 2 - Deuteranopia |
30 | * 3 - Tritanopia |
31 | * 4 - Achromatopsia |
32 | */ |
33 | QImage recolor(const QImage &pm, int mode, qreal gamma = 1.0); |
34 | } |
35 | #endif |
36 | |