File indexing completed on 2024-04-28 07:27:18

0001 // SPDX-FileCopyrightText: 2008 Matthew Woehlke <mw_triad@users.sourceforge.net>
0002 // SPDX-License-Identifier: GPL-2.0-or-later
0003 
0004 /***************************************************************************
0005  *                                                                         *
0006  *   This program is free software; you can redistribute it and/or modify  *
0007  *   it under the terms of the GNU General Public License as published by  *
0008  *   the Free Software Foundation; either version 2 of the License, or     *
0009  *   (at your option) any later version.                                   *
0010  *                                                                         *
0011  ***************************************************************************/
0012 
0013 #ifndef KMAGCOLORSIM_H
0014 #define KMAGCOLORSIM_H
0015 
0016 // include files for Qt
0017 #include <QImage>
0018 
0019 namespace ColorSim {
0020     /**
0021      * Recolor a pixmap according to the specified simulation mode:
0022      * 1 - Protanopia
0023      * 2 - Deuteranopia
0024      * 3 - Tritanopia
0025      * 4 - Achromatopsia
0026      */
0027     QImage recolor(const QImage &pm, int mode, qreal gamma = 1.0);
0028 }
0029 #endif