You can use the Extent method of MagickImage for this. Below is a simple example:
using (MagickImage portrait = new MagickImage("xc:red", 50, 100)) { portrait.Extent(250, 250, Gravity.Center, new MagickColor("white")); }