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

New Post: How do I update a preview window from imagemagick?

$
0
0
Image.FromFile will lock your file so you should do something like this:
if (Preview.BackgroundImage != null)
  Preview.BackgroundImage.Dispose();

using (var bitmap = new Bitmap("foo.png"))
{
  Preview.BackgroundImage = new Bitmap(bitmap);
}

Viewing all articles
Browse latest Browse all 3693

Trending Articles