Skip to content

Commit 1e4ad44

Browse files
committedDec 5, 2018
Use image operation's multiplyOpacity in image cache
1 parent c642533 commit 1e4ad44

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

‎src/core/qgsimagecache.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,12 @@
1616
***************************************************************************/
1717

1818
#include "qgsimagecache.h"
19+
1920
#include "qgis.h"
21+
#include "qgsimageoperation.h"
2022
#include "qgslogger.h"
2123
#include "qgsnetworkaccessmanager.h"
2224
#include "qgsmessagelog.h"
23-
#include "qgssymbollayerutils.h"
2425
#include "qgsnetworkcontentfetchertask.h"
2526

2627
#include <QApplication>
@@ -217,7 +218,7 @@ QImage QgsImageCache::renderImage( const QString &path, QSize size, const bool k
217218
im = im.convertToFormat( QImage::Format_ARGB32 );
218219

219220
if ( opacity < 1.0 )
220-
QgsSymbolLayerUtils::multiplyImageOpacity( &im, opacity );
221+
QgsImageOperation::multiplyOpacity( im, opacity );
221222

222223
// render image at desired size -- null size means original size
223224
if ( !size.isValid() || size.isNull() || im.size() == size )

0 commit comments

Comments
 (0)