QGIS API Documentation 3.29.0-Master (006c3c0232)
Public Attributes | List of all members
QgsImageOperation::DistanceTransformProperties Struct Reference

Struct for storing properties of a distance transform operation. More...

#include <qgsimageoperation.h>

Public Attributes

QgsColorRampramp = nullptr
 Color ramp to use for shading the distance transform. More...
 
bool shadeExterior = true
 Set to true to perform the distance transform on transparent pixels in the source image, set to false to perform the distance transform on opaque pixels. More...
 
double spread = 10.0
 Maximum distance (in pixels) for the distance transform shading to spread. More...
 
bool useMaxDistance = true
 Set to true to automatically calculate the maximum distance in the transform to use as the spread value. More...
 

Detailed Description

Struct for storing properties of a distance transform operation.

Definition at line 122 of file qgsimageoperation.h.

Member Data Documentation

◆ ramp

QgsColorRamp* QgsImageOperation::DistanceTransformProperties::ramp = nullptr

Color ramp to use for shading the distance transform.

Definition at line 147 of file qgsimageoperation.h.

◆ shadeExterior

bool QgsImageOperation::DistanceTransformProperties::shadeExterior = true

Set to true to perform the distance transform on transparent pixels in the source image, set to false to perform the distance transform on opaque pixels.

Definition at line 130 of file qgsimageoperation.h.

◆ spread

double QgsImageOperation::DistanceTransformProperties::spread = 10.0

Maximum distance (in pixels) for the distance transform shading to spread.

Definition at line 142 of file qgsimageoperation.h.

◆ useMaxDistance

bool QgsImageOperation::DistanceTransformProperties::useMaxDistance = true

Set to true to automatically calculate the maximum distance in the transform to use as the spread value.

Definition at line 136 of file qgsimageoperation.h.


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