mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Contains methods to serialize/deserialize colors from xml and strings, where the colors are losslessly stored/restored. The previous methods for storing colors (Eg QgsSymbolLayerUtils::encode/decodeColor) are lossy, and only store QColors as 8 bit RGB representations. In contrast, the new methods store the full lossless representation of a QColor, including support for 16 bit color components, extended RGB color components, and storage of HSL/HSV/CMYK color specifications using their original color components instead of RGB components. When these new methods are used in place of the existing lossy methods, they open the possibility of 16 bit color support for QGIS symbols/projects, (and potentially future CMYK color support).