Declaration
procedure WaitThreads(AbortAll: Boolean = false);
Description
Call WaitThreads to wait until all threads complete. If
AbortAll is True, then all threads will be aborted.
ImageEnIO.LoadFromFile('C:\input.jpg');
ImageEnIO.AsyncMode := True; // Enable multithreading
ImageEnIO.SaveToFile('D:\output1.jpg'); // Save in thread 1
ImageEnIO.SaveToFile('D:\output2.jpg'); // Save in thread 2
ImageEnIO.WaitThreads(false); // Wait until all saving threads terminate