What is the correct way to increase DPI from 72 to 300.
This is what I am trying.
This is what I am trying.
Int32 density = 300;
using (MagickImage resize = new MagickImage(folder + filename))
{
resize.Density = new Density(density, density, DensityUnit.PixelsPerInch);
resize.VirtualPixelMethod = VirtualPixelMethod.Transparent;
filename = Guid.NewGuid().ToString() + System.IO.Path.GetExtension(filename);
resize.Write(folder + filename);
}