Test:
var emptyBitmap = new Bitmap(100, 100, PixelFormat.Format24bppRgb);
var im = new MagickImage(emptyBitmap);
Result:
System.ArgumentNullException occurred
HResult=-2147467261
Message=Value cannot be null.
Parameter name: encoder
Source=System.Drawing
ParamName=encoder
StackTrace:
at System.Drawing.Image.Save(Stream stream, ImageCodecInfo encoder, EncoderParameters encoderParams)
InnerException:
In MagickImage.cpp on line 2015.
var emptyBitmap = new Bitmap(100, 100, PixelFormat.Format24bppRgb);
var im = new MagickImage(emptyBitmap);
Result:
System.ArgumentNullException occurred
HResult=-2147467261
Message=Value cannot be null.
Parameter name: encoder
Source=System.Drawing
ParamName=encoder
StackTrace:
at System.Drawing.Image.Save(Stream stream, ImageCodecInfo encoder, EncoderParameters encoderParams)
InnerException:
In MagickImage.cpp on line 2015.