Quantcast
Channel: magick Discussions Rss Feed
Viewing all articles
Browse latest Browse all 3693

New Post: MagickImage.Resample has no effect

$
0
0
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?

Viewing all articles
Browse latest Browse all 3693

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>