QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Utility functions for raster renderers. More...
#include <qgsrasterrendererutils.h>
Static Public Member Functions | |
static bool | parseColorMapFile (const QString &path, QList< QgsColorRampShader::ColorRampItem > &items, QgsColorRampShader::Type &type, QStringList &errors) |
Parses an exported color map file at the specified path and extracts the stored color ramp items and ramp shader type. More... | |
static bool | saveColorMapFile (const QString &path, const QList< QgsColorRampShader::ColorRampItem > &items, QgsColorRampShader::Type type) |
Exports a list of color ramp items and ramp shader type to a color map file at the specified path. More... | |
Utility functions for raster renderers.
Definition at line 29 of file qgsrasterrendererutils.h.
|
static |
Parses an exported color map file at the specified path and extracts the stored color ramp items and ramp shader type.
Returns true
if the parsing was successful. If not, a list of errors will be generated.
Definition at line 24 of file qgsrasterrendererutils.cpp.
|
static |
Exports a list of color ramp items and ramp shader type to a color map file at the specified path.
Returns true
if the save was successful.
Definition at line 96 of file qgsrasterrendererutils.cpp.