Skip to content

Commit

Permalink
Use QgsImageOperation optimized implementation of stackblur in shapeb…
Browse files Browse the repository at this point in the history
…urst fill
  • Loading branch information
nyalldawson committed Jul 30, 2019
1 parent 8bfe5f9 commit e1d118f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/symbology/qgsfillsymbollayer.cpp
Expand Up @@ -30,6 +30,7 @@
#include "qgsunittypes.h"
#include "qgsmessagelog.h"
#include "qgsapplication.h"
#include "qgsimageoperation.h"

#include <QPainter>
#include <QFile>
Expand Down Expand Up @@ -1251,7 +1252,7 @@ void QgsShapeburstFillSymbolLayer::renderPolygon( const QPolygonF &points, QList
//apply blur if desired
if ( blurRadius > 0 )
{
QgsSymbolLayerUtils::blurImageInPlace( *fillImage, QRect( 0, 0, fillImage->width(), fillImage->height() ), blurRadius, false );
QgsImageOperation::stackBlur( *fillImage, blurRadius, false );
}

//apply alpha channel to distance transform image, so that areas outside the polygon are transparent
Expand Down

0 comments on commit e1d118f

Please sign in to comment.