Looking at the imagemagick documentation, it looks like resample should resample an image to the target double value for Pixels Per Inch or Pixels Per Cm.
In Magick.Net however, it seems to take a target width and height as integers, and it does not update the image's ResolutionX or ResolutionY properties after the resample.
MagickImage.Resample(targetWidth, targetHeight);
Also confusing is that in the MagickImageInfo class, width and height are referred to as such, and ResolutionX and ResolutionY seem to refer to the DPI. However the Resample method has parameters ResolutionX and ResolutionY, which now seem to be integers referring to the target width and height rather than doubles referring to the target DPI.
Am I going about this wrong? I would have expected the Resample method to provide double parameters for the dpi or dpcm. Or if it is going to work with a provided width and height, I would expect it to recalculate the image's ResolutionX and ResolutionY properties.
Basically I'm trying to resample a 72DPI image to 200DPI. It's adding more pixels, but not updating the Density. Any input is appreciated!
In Magick.Net however, it seems to take a target width and height as integers, and it does not update the image's ResolutionX or ResolutionY properties after the resample.
MagickImage.Resample(targetWidth, targetHeight);
Also confusing is that in the MagickImageInfo class, width and height are referred to as such, and ResolutionX and ResolutionY seem to refer to the DPI. However the Resample method has parameters ResolutionX and ResolutionY, which now seem to be integers referring to the target width and height rather than doubles referring to the target DPI.
Am I going about this wrong? I would have expected the Resample method to provide double parameters for the dpi or dpcm. Or if it is going to work with a provided width and height, I would expect it to recalculate the image's ResolutionX and ResolutionY properties.
Basically I'm trying to resample a 72DPI image to 200DPI. It's adding more pixels, but not updating the Density. Any input is appreciated!