You can use the FormatExpression method of MagickImage for this.
using(MagickImage image = new MagickImage(@"c:\yourdir\tmpI.mpc")) { string val = image.FormatExpression("%[" +maximum + "]"); }