Added legality checking to shogi.
[tagua/yd.git] / src / imageeffects.h
blob7848ca09418cd43087c02c26a091db6409c07b5f
1 /*
2 Copyright (c) 2006 Paolo Capriotti <p.capriotti@sns.it>
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