[QGIS-Developer] PyQgis, How to get the list of colors by pixel values

Xavier Corredor Llano xavier.corredor.llano at gmail.com
Sun Mar 25 21:48:33 PDT 2018


Hello everyone,

For example, if you have loaded a integer raster image, this raster showed in 
Qgis with colors by pixel values (automatic or modified by user). How to get, 
by pixel value the correspondent color as is drawed in Qgis? I need the list 
of colors for all pixel values for specific layer (raster with only integer or 
byte data type without color table).

Thanks!
Regards,
Xavier Corredor Ll.






More information about the QGIS-Developer mailing list