You can use the
p.s. I will add a new overload in the next version so you can do this:
Extent
method of MagickImage
to do this.int x = -100; int y = -100; int width = 500; int height = 200; using (MagickImage image = new MagickImage("logo:")) { image.BackgroundColor = new MagickColor("blue"); image.Extent(new MagickGeometry(x, y, width, height)); image.Write("output.png"); }
image.Extent(x, y, width, height);