using (MagickImage image = new MagickImage(src))
{
image.Resize(Width, Height);
image.Quality = 70;
image.Write(dst);
}
Exception Info: System.AccessViolationException
Stack:
at <Module>.Magick.Image.write(Magick.Image*, std.basic_string<char,std::char_traits<char>,std::allocator<char> >*)
at <Module>.Magick.Image.write(Magick.Image*, std.basic_string<char,std::char_traits<char>,std::allocator<char> >*)
at ImageMagick.MagickWriter.Write(Magick.Image*, System.String)
at GMS.Services.ImageFeed.ImagesFeedService+<>c__DisplayClass24.<Resize>b__23()
Comments: ** Comment from web user: dlemstra **
{
image.Resize(Width, Height);
image.Quality = 70;
image.Write(dst);
}
Exception Info: System.AccessViolationException
Stack:
at <Module>.Magick.Image.write(Magick.Image*, std.basic_string<char,std::char_traits<char>,std::allocator<char> >*)
at <Module>.Magick.Image.write(Magick.Image*, std.basic_string<char,std::char_traits<char>,std::allocator<char> >*)
at ImageMagick.MagickWriter.Write(Magick.Image*, System.String)
at GMS.Services.ImageFeed.ImagesFeedService+<>c__DisplayClass24.<Resize>b__23()
Comments: ** Comment from web user: dlemstra **
And can you also specify the data type of Width/Height and the values?