[Magick++] Image constructor bug
Posted: 2019-08-02T00:04:14-07:00
I am using Magick++ version 7. I tried drawing a 500x500 colored image using this code:
It works for most colors, but fails for most orange ones - the samples I have are FF4500 and FFA500. Both are orange, but the output is yellow. The same yellow image is written for both hex codes. I have confirmed the RGB colors are correct.
The output image is attached below.

Code: Select all
Magick::Image canvas(Magick::Geometry(500, 500), Magick::ColorRGB(r, g, b));
canvas.write("out.png");
The output image is attached below.
