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.
Code: Select all
Magick::Image canvas(Magick::Geometry(500, 500), Magick::ColorRGB(r, g, b));
canvas.write("out.png");