// krazy:exclude=copyright (email of Maxim is missing) /* This file is a part of the KDE project SPDX-FileCopyrightText: 2006 Zack Rusin SPDX-FileCopyrightText: 2006-2007, 2008 Fredrik Höglund The stack blur algorithm was invented by Mario Klingemann This implementation is based on the version in Anti-Grain Geometry Version 2.4, SPDX-FileCopyrightText: 2002-2005 Maxim Shemanarev SPDX-License-Identifier: BSD-2-Clause */ #ifndef IMAGEFILTER_H #define IMAGEFILTER_H class QImage; class QColor; class ImageFilter { public: // Blurs the alpha channel of the image and recolors it to the specified color. // The image must have transparent padding on all sides, or the shadow will be clipped. static void shadowBlur(QImage &image, float radius, const QColor &color); }; #endif