I think you can do this much easier with the Extent method of MagickImage.
MagickImage image = new MagickImage(strTempFile); image.Extent(width, height, Gravity.Center, new MagickColor("#fff"));