1// krazy:exclude=copyright (email of Maxim is missing)
2/*
3 This file is a part of the KDE project
4
5 SPDX-FileCopyrightText: 2006 Zack Rusin <zack@kde.org>
6 SPDX-FileCopyrightText: 2006-2007, 2008 Fredrik Höglund <fredrik@kde.org>
7
8 The stack blur algorithm was invented by Mario Klingemann <mario@quasimondo.com>
9
10 This implementation is based on the version in Anti-Grain Geometry Version 2.4,
11 SPDX-FileCopyrightText: 2002-2005 Maxim Shemanarev <http://www.antigrain.com>
12
13 SPDX-License-Identifier: BSD-2-Clause
14*/
15
16#ifndef KIO_IMAGEFILTER_P_H
17#define KIO_IMAGEFILTER_P_H
18
19#include "kiowidgets_export.h"
20
21class QImage;
22class QColor;
23namespace KIO
24{
25class KIOWIDGETS_EXPORT ImageFilter
26{
27public:
28 // Blurs the alpha channel of the image and recolors it to the specified color.
29 // The image must have transparent padding on all sides, or the shadow will be clipped.
30 static void shadowBlur(QImage &image, float radius, const QColor &color);
31};
32
33}
34
35#endif
36

source code of kio/src/widgets/imagefilter_p.h