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