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

Post Reply

Who is online

Users browsing this forum: Baidu [Spider], Google [Bot] and 1 guest