How to use GdPictureImaging with multithreading

Example requests & Code samples for GdPicture Toolkits.
Post Reply
MLEU
Posts: 1
Joined: Fri Nov 02, 2018 3:49 pm

How to use GdPictureImaging with multithreading

Post by MLEU » Mon Nov 05, 2018 8:16 am

Hi,
we use GdPicture 12 to read datamatrix codes. We need to do a lot of image preprocessing using GdPictureImaging class to enhance image quality.
Because there are several possible "preprocessing paths" which might lead to a readable ID code, we want to start these paths in parallel using C# tasks. The image is cloned before starting processing in the tasks.

My question: Is it correct to instantiate a new GdPictureImaging object for every task? Can we be sure that working with one GdPictureImaging instance is independent to the other intances? I assume that at least the method ClearGdPicture() releases resources also created by other GdPictureImaging instances. But are there any more methods that also have influence to other GdPictureImaging instances? Do we perhaps need to mutex any methods?
Can you please provide any example how to use GdPictureImaging in parallel?

Thanks in advance
MLEU

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: How to use GdPictureImaging with multithreading

Post by Loïc » Tue Jan 15, 2019 11:55 am

Hi,

>>My question: Is it correct to instantiate a new GdPictureImaging object for every task?

Yes, as soon each of these instance are not manipulating the same image in parallel.

Please let us know if you need further information.

With best regards,

Loïc Carrère

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest