Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Tuesday, March 18, 2014 8:33:41 AM(UTC)

RobertB  
Guest

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.

  1. CS_Threading_18 - A Visual Studio 2008 (.NET 2.0) project that creates a separate thread to load all images in a directory.
  2. 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.
  3. 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)
File Attachment(s):
Threading-Parallel-Async.zip (76kb) downloaded 148 time(s).
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

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.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.101 seconds.