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.
![Image](https://i.imgur.com/n7RGDc0.png)
Code: Select all
Magick::Image canvas(Magick::Geometry(500, 500), Magick::ColorRGB(r, g, b));
canvas.write("out.png");