This project has moved. For the latest updates, please go here.

Cancel image writing

Aug 2, 2016 at 6:37 AM
Hello,

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) ?
Coordinator
Aug 2, 2016 at 7: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 6:11 PM
Ok thank you for your answer, I'll try that.
Aug 28, 2016 at 4:11 PM
It works perfectly fine, thanks a lot for your software and help!
Coordinator
Aug 28, 2016 at 5:11 PM
Edited Aug 28, 2016 at 5:17 PM
You're welcome and thanks for coming back to report that it works :)