QGIS API Documentation  3.37.0-Master (a5b4d9743e8)
Public Member Functions | Public Attributes | List of all members
QgsRasterTransparency::TransparentThreeValuePixel Struct Reference

Defines the transparency for a RGB pixel value. More...

#include <qgsrastertransparency.h>

Public Member Functions

 TransparentThreeValuePixel (double red=0, double green=0, double blue=0, double opacity=0)
 Constructor for TransparentThreeValuePixel. More...
 
bool operator!= (const QgsRasterTransparency::TransparentThreeValuePixel &other) const
 
bool operator== (const QgsRasterTransparency::TransparentThreeValuePixel &other) const
 

Public Attributes

double blue
 Blue pixel value. More...
 
double green
 Green pixel value. More...
 
double opacity = 0
 Opacity for pixel, between 0 and 1.0. More...
 
double red
 Red pixel value. More...
 

Detailed Description

Defines the transparency for a RGB pixel value.

Definition at line 47 of file qgsrastertransparency.h.

Constructor & Destructor Documentation

◆ TransparentThreeValuePixel()

QgsRasterTransparency::TransparentThreeValuePixel::TransparentThreeValuePixel ( double  red = 0,
double  green = 0,
double  blue = 0,
double  opacity = 0 
)
inline

Constructor for TransparentThreeValuePixel.

Parameters
redred pixel value
greengreen pixel value
blueblue pixel value
opacityopacity for pixel, between 0 and 1.0
Since
QGIS 3.38

Definition at line 58 of file qgsrastertransparency.h.

Member Function Documentation

◆ operator!=()

bool QgsRasterTransparency::TransparentThreeValuePixel::operator!= ( const QgsRasterTransparency::TransparentThreeValuePixel other) const
inline

Definition at line 94 of file qgsrastertransparency.h.

◆ operator==()

bool QgsRasterTransparency::TransparentThreeValuePixel::operator== ( const QgsRasterTransparency::TransparentThreeValuePixel other) const
inline

Definition at line 87 of file qgsrastertransparency.h.

Member Data Documentation

◆ blue

double QgsRasterTransparency::TransparentThreeValuePixel::blue

Blue pixel value.

Definition at line 78 of file qgsrastertransparency.h.

◆ green

double QgsRasterTransparency::TransparentThreeValuePixel::green

Green pixel value.

Definition at line 73 of file qgsrastertransparency.h.

◆ opacity

double QgsRasterTransparency::TransparentThreeValuePixel::opacity = 0

Opacity for pixel, between 0 and 1.0.

Since
QGIS 3.38

Definition at line 85 of file qgsrastertransparency.h.

◆ red

double QgsRasterTransparency::TransparentThreeValuePixel::red

Red pixel value.

Definition at line 68 of file qgsrastertransparency.h.


The documentation for this struct was generated from the following file: