QGIS API Documentation  3.18.1-Zürich (202f1bf7e5)
Public Types | Static Public Member Functions | List of all members
QgsPainting Class Reference

Misc painting enums and functions. More...

#include <qgspainting.h>

Public Types

enum  BlendMode {
  BlendNormal , BlendLighten , BlendScreen , BlendDodge ,
  BlendAddition , BlendDarken , BlendMultiply , BlendBurn ,
  BlendOverlay , BlendSoftLight , BlendHardLight , BlendDifference ,
  BlendSubtract , BlendSource , BlendDestinationOver , BlendClear ,
  BlendDestination , BlendSourceIn , BlendDestinationIn , BlendSourceOut ,
  BlendDestinationOut , BlendSourceAtop , BlendDestinationAtop , BlendXor
}
 Blending modes enum defining the available composition modes that can be used when rendering a layer. More...
 

Static Public Member Functions

static QgsPainting::BlendMode getBlendModeEnum (QPainter::CompositionMode blendMode)
 Returns a BlendMode corresponding to a QPainter::CompositionMode. More...
 
static QPainter::CompositionMode getCompositionMode (QgsPainting::BlendMode blendMode)
 Returns a QPainter::CompositionMode corresponding to a BlendMode. More...
 

Detailed Description

Misc painting enums and functions.

Since
QGIS 3.0

Definition at line 28 of file qgspainting.h.

Member Enumeration Documentation

◆ BlendMode

Blending modes enum defining the available composition modes that can be used when rendering a layer.

Enumerator
BlendNormal 
BlendLighten 
BlendScreen 
BlendDodge 
BlendAddition 
BlendDarken 
BlendMultiply 
BlendBurn 
BlendOverlay 
BlendSoftLight 
BlendHardLight 
BlendDifference 
BlendSubtract 
BlendSource 
BlendDestinationOver 
BlendClear 
BlendDestination 
BlendSourceIn 
BlendDestinationIn 
BlendSourceOut 
BlendDestinationOut 
BlendSourceAtop 
BlendDestinationAtop 
BlendXor 

Definition at line 36 of file qgspainting.h.

Member Function Documentation

◆ getBlendModeEnum()

QgsPainting::BlendMode QgsPainting::getBlendModeEnum ( QPainter::CompositionMode  blendMode)
static

Returns a BlendMode corresponding to a QPainter::CompositionMode.

Definition at line 80 of file qgspainting.cpp.

◆ getCompositionMode()

QPainter::CompositionMode QgsPainting::getCompositionMode ( QgsPainting::BlendMode  blendMode)
static

Returns a QPainter::CompositionMode corresponding to a BlendMode.

Definition at line 20 of file qgspainting.cpp.


The documentation for this class was generated from the following files: