QColorMap: Pseudo colors with Qt
Unsolved
General and Desktop
-
Hello,
i want to apply "false colors" or "pseudo colors" onto a grayscale QImage but i didn't find any adequate way to do this...? Is there any support apart from writing a native QColor vector and change the color for every pixel i paint?I cannot find any examples for QColorMap
-
@QtAndrew
I haven tested it but worth a try, since your screenshot lets me assume you anyway want to show max. 256 colors?First convert the QImage to
QImage::Format_Indexed8
format, then iterate over the image's color-table and replace the colors based on their value with your colors.