Quantcast
Channel: magick Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 1011

Commented Unassigned: Cannot load bitmap if BitmapData is empty [970]

$
0
0
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.
Comments: ** Comment from web user: petersunde **

Oddly enough, if you write the bitmap to disk via Save() and then load it via File.ReadAllBytes() or by specified the path you saved the image to, it works.


Viewing all articles
Browse latest Browse all 1011

Trending Articles



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