1 #ifndef BLUR_H
2 #define BLUR_H
3 
4 #include <QImage>
5 #include <QRect>
6 
7 namespace olive {
8   namespace ui {
9     /**
10      * @brief Convenience function for blurring a QImage
11      *
12      * @param result
13      *
14      * QImage to blur
15      *
16      * @param rect
17      *
18      * The rectangle of the QImage to blur. Use QImage::rect() to blur the entire image.
19      *
20      * @param radius
21      *
22      * The blur radius - how much to blur the image.
23      *
24      * @param alphaOnly
25      *
26      * True if only the alpha channel should be blurred rather than the entire RGBA space.
27      */
28     void blur(QImage& result, const QRect& rect, int radius, bool alphaOnly);
29   }
30 }
31 
32 #endif // BLUR_H
33