Code: Select all
using (MagickImage sourceImage = new MagickImage(sourceFile))
{
using (MagickImage destImage = new MagickImage(destinationFile))
{
int iDestWidth = destImage.Width;
int iDestHeight = destImage.Height;
sourceImage.Resize(iDestWidth, iDestHeight);
sourceImage.Composite(destImage);
}
sourceImage.Write(destinationFile);
}