1
/* ============================================================
3
* This file is a part of digiKam project
4
* http://www.digikam.org
7
* Description : a digiKam image plugin for to apply a color
10
* Copyright (C) 2004-2005 by Renchi Raju <renchi@pooh.tam.uiuc.edu>
11
* Copyright (C) 2006-2009 by Gilles Caulier <caulier dot gilles at gmail dot com>
13
* This program is free software; you can redistribute it
14
* and/or modify it under the terms of the GNU General
15
* Public License as published by the Free Software Foundation;
16
* either version 2, or (at your option)
19
* This program is distributed in the hope that it will be useful,
20
* but WITHOUT ANY WARRANTY; without even the implied warranty of
21
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22
* GNU General Public License for more details.
24
* ============================================================ */
31
#include "editortool.h"
38
namespace DigikamColorFXImagesPlugin
41
class ColorFXToolPriv;
43
class ColorFXTool : public Digikam::EditorTool
49
ColorFXTool(QObject *parent);
56
void finalRendering();
57
void colorEffect(uchar *data, int w, int h, bool sb);
58
void solarize(int factor, uchar *data, int w, int h, bool sb);
59
void vivid(int factor, uchar *data, int w, int h, bool sb);
60
void neon(uchar *data, int w, int h, bool sb, int Intensity, int BW);
61
void findEdges(uchar *data, int w, int h, bool sb, int Intensity, int BW);
62
void neonFindEdges(uchar *data, int w, int h, bool sb, bool neon, int Intensity, int BW);
64
inline int getOffset(int Width, int X, int Y, int bytesDepth);
65
inline int Lim_Max(int Now, int Up, int Max);
69
void slotEffectTypeChanged(int type);
71
void slotResetSettings();
72
void slotColorSelectedFromTarget(const Digikam::DColor& color);
86
ColorFXToolPriv* const d;
89
} // namespace DigikamColorFXImagesPlugin
91
#endif /* COLORFXTOOL_H */