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

New Post: Convert a pdf page to image

$
0
0
Did you call MagickNET.Initialize() at the start of your program as explained here? The new release has been publish so you could use this code:
using (MagickImageCollection collection = new MagickImageCollection())
{
  MagickReadSettings settings = new MagickReadSettings();
  settings.Density = new MagickGeometry(144, 144);

  collection.Read(file, settings);

  int id = 0;
  foreach (MagickImage image in collection)
  {
    image.Write(destFolder + "img" + id + ".png");
    id++;
  }
}

Viewing all articles
Browse latest Browse all 3693

Trending Articles



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