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

New Post: Resize cause an "Attempted to read or write protected memory"

$
0
0
Hi ..

I have a simple test for generate a thumbnail (i went verify the performance versus GDI+). I am using this code:
  public Image ResizeImage(string imageoriginal , int newWidth, int newHeight)
        {
            ImageMagick.MagickImage img =new ImageMagick.MagickImage(imageoriginal);
            //ImageMagick.MagickGeometry geometry = new ImageMagick.MagickGeometry("90x90!");
            img.Resize(90, 90); //<--- error ocurs here.

            return img.ToBitmap();
}
Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

imageoriginal contains an image file (tif, jpg, png, bmp)


I get the last version with nuget.

Viewing all articles
Browse latest Browse all 3693

Trending Articles



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