Skip to content

Commit cbea2d4

Browse files
committedApr 22, 2013
Merge pull request #547 from nyalldawson/blend_modes_sip
Add sip bindings for layer blend modes
2 parents 269a419 + 2298cae commit cbea2d4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed
 

‎python/core/qgsmaplayer.sip

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,13 @@ class QgsMapLayer : QObject
306306
* @note This method was added in QGIS 1.4 **/
307307
void setCacheImage( QImage * thepImage /Transfer/ );
308308

309+
/* Returns the current blending mode for a layer
310+
@note added in version 1.9*/
311+
const QPainter::CompositionMode blendMode() const;
312+
/* Sets the blending mode for a layer
313+
@note added in version 1.9*/
314+
void setBlendMode( const QPainter::CompositionMode blendMode );
315+
309316
public slots:
310317

311318
/** Event handler for when a coordinate transform fails due to bad vertex error */

0 commit comments

Comments
 (0)
Please sign in to comment.