File indexing completed on 2024-12-01 03:41:12
0001 // krazy:exclude=copyright (email of Maxim is missing) 0002 /* 0003 This file is a part of the KDE project 0004 0005 SPDX-FileCopyrightText: 2006 Zack Rusin <zack@kde.org> 0006 SPDX-FileCopyrightText: 2006-2007, 2008 Fredrik Höglund <fredrik@kde.org> 0007 0008 The stack blur algorithm was invented by Mario Klingemann <mario@quasimondo.com> 0009 0010 This implementation is based on the version in Anti-Grain Geometry Version 2.4, 0011 SPDX-FileCopyrightText: 2002-2005 Maxim Shemanarev <http://www.antigrain.com> 0012 0013 SPDX-License-Identifier: BSD-2-Clause 0014 */ 0015 0016 #ifndef KIO_IMAGEFILTER_P_H 0017 #define KIO_IMAGEFILTER_P_H 0018 0019 #include "kiowidgets_export.h" 0020 0021 class QImage; 0022 class QColor; 0023 namespace KIO 0024 { 0025 class KIOWIDGETS_EXPORT ImageFilter 0026 { 0027 public: 0028 // Blurs the alpha channel of the image and recolors it to the specified color. 0029 // The image must have transparent padding on all sides, or the shadow will be clipped. 0030 static void shadowBlur(QImage &image, float radius, const QColor &color); 0031 }; 0032 0033 } 0034 0035 #endif