I'm using the following code:
public static void InPlaceResample(string source, int width, int height)
{
using (var image = new MagickImage(source))
{
image.Resample(width, height);
image.Write(source);
}
}
The method is intended to change only the DPI of an image, but when running through the debugger the ResolutionX and ResolutionY properties are not changed by calling Resample. Am I missing something?