libgdiplus
libgdiplus copied to clipboard
Fix ISSUE #706 The color of CMYK pixel format pictures is incorrect.
Values of b and r are incorrect. Red is assigned to b, and blue is assigned to r.
Swap the positions of b and r. Fix to:
r = (255 - k) * (255 - c) / 255;
g = (255 - k) * (255 - m) / 255;
b = (255 - k) * (255 - y) / 255;
Example, red: C = 0% M = 100% Y = 100% K = 0%
=>
R = 255 * 255 / 255 = 255 G = 255 * 0 / 255 = 0 B = 255 * 0 / 255 = 0
Hi, any update? When will we get a release version containing this modification? If it takes a long time to release a new version, we may need to compile this library ourselves. Thanks.
Usually the release cadence of this library is quite slow. @akoeplinger, can you look at this PR / approve it?