LEADTOOLS Support
General
General Questions
How To: Load Images in separate Thread, in Parallel, and with Async/Await
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Tuesday, March 18, 2014 8:33:41 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
Attached are three projects that load the first page of all images in a directory to a RasterImageList and prints to a textbox what thread each image was loaded on.
- CS_Threading_18 - A Visual Studio 2008 (.NET 2.0) project that creates a separate thread to load all images in a directory.
- LT18_Parallel - A Visual Studio 2010 (.NET 4.0) project that uses a Parallel.For loop to load all images in a directory in parallel.
- LT18_Async - A Visual Studio 2012 (.NET 4.5) project that makes use of the async and await key words to load all images in a directory asynchronously. (Note: RasterCodecs.LoadAsync(...) provides a different implementation for loading images asynchronously)
LEADTOOLS Support
General
General Questions
How To: Load Images in separate Thread, in Parallel, and with Async/Await
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.