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

New Post: Error Reading Pages as PNGs with Byte Arrays

$
0
0
Are you sure that you are providing a correct byte array? I just tried the following and it works without any problem:
using (MagickImage image = new MagickImage("logo:"))
{
  using (MemoryStream stream = new MemoryStream())
  {
    image.Format = MagickFormat.Png;
    image.Write(stream);

    stream.Position = 0;
    using (MagickImage output = new MagickImage(stream.ToArray()))
    {
    }
  }
}

Viewing all articles
Browse latest Browse all 3693

Trending Articles



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