Prepare 1.0 alpha3 release.
[tagua/yd.git] / src / imageeffects.h
blob552dd26ef7d4d150e23ba1e0928e7fe216a4522a
1 /*
2 Copyright (c) 2006 Paolo Capriotti <p.capriotti@gmail.com>
3 (c) 2006 Maurizio Monge <maurizio.monge@kdemail.net>
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
9 */
11 #ifndef IMAGEEFFECTS_H
12 #define IMAGEEFFECTS_H
14 #include <QImage>
15 #include <QPoint>
16 #include <vector>
18 namespace ImageEffects {
19 void expBlur(QImage& img, int radius);
20 QImage addShadow(const QImage& image, int radius, QColor color,
21 int offx, int offy, int growx, int growy);
22 void floodFill(QImage& image, QPoint point, QColor color,
23 bool invade_border = false, std::vector<QPoint>* border = NULL);
24 void floodFillBlueThreshold(QImage& image, QPoint point, QColor color, unsigned int thresh,
25 bool invade_border = false, std::vector<QPoint>* border = NULL);
26 QImage growBorder(const QImage& image);
27 } //end namespace ImageEffects
29 #endif //IMAGEEFFECTS_H