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

New Post: Resize(int width, int height) and Grayscale effect

$
0
0
Just in case if you have time, I've some new issue while progressing my project.

Its regarding to UI/Background thread issue, how easy is it for you to generate some long running animation with WPF? Like some kind of loading spinner, which spins indefinitely..

Normally if I wrap everything heavy in
Task.Factory.StartNew(new Action(() =>
{
    // You can replace this with new MagickImage(pathToPhotoLargePhoto).Distort(DistortMethod.Barrel, new double[] { 0.0, 0.0, 0.0, 0.98, 0, 0, -0.12, 1.15 });
    ImageMagickProcess(); 
});
my spinning icon would play smoothly until I do any further UI update..

However distort seems to freeze my UI while I already have it processing inside background thread..

Could you please have a try and see if you can reproduce the same problem? Let me know if you'd like to have this discussion in new thread..

Thank you..

Viewing all articles
Browse latest Browse all 3693

Trending Articles