Wow thanks! The code I did was somewhat similar but getting errors "QColor::fromCmyk: CMYK parameters out of range"
Seems like the solution is to declare c,m,y,k as quint8 before dropping them into fromCmyk() function. [I recklessly and directly used data[0], data[totalbytes], etc into that function :) ].
Yes, I also got "QColor::fromCmyk: CMYK parameters out of range" at first, and it seems result from casting from unsigned char to int. Anyway, I didn't verify it.
Wow thanks! The code I did was somewhat similar but getting errors "QColor::fromCmyk: CMYK parameters out of range"
Seems like the solution is to declare c,m,y,k as quint8 before dropping them into fromCmyk() function. [I recklessly and directly used data[0], data[totalbytes], etc into that function :) ].
Well! It worked like a charm!