This project has moved and is read-only. For the latest updates, please go here.

Cancel image writing

Aug 2, 2016 at 7:37 AM

Thanks for your awesome work on this library.
I have a question/request, is it possible to cancel the write of an image (with some WriteAsync and Cancel function for example) ?
Aug 2, 2016 at 8:21 PM
There is no Async version of the write method but you can still cancel it. The MagickImage class has a Progress event that will tell you the progress of operations on the image. If you set Cancel of ProgressEventArgs to true it will stop the write operations. This will not work for all formats. Formats that use a delegate (executable) cannot be cancelled.
Aug 19, 2016 at 7:11 PM
Ok thank you for your answer, I'll try that.
Aug 28, 2016 at 5:11 PM
It works perfectly fine, thanks a lot for your software and help!
Aug 28, 2016 at 6:11 PM
Edited Aug 28, 2016 at 6:17 PM
You're welcome and thanks for coming back to report that it works :)