I have never worked with TPL before, so I was wondering if this can be done: My application creates a gif image animation file from multiple frames. I start with the Bitmap list, which represents the frames of the gif file, and for each frame you need to do the following:
- draw a series of frames / bitmaps on a frame
- crop frame
- resize frame
- reduce image to 256 colors
Obviously, this process can be performed in parallel for all frames in the list, but for each frame, the order of steps should be the same. After that I need to write all the frames to the gif file. Therefore, all frames must be received in the same order in which they were in the original list. In addition, this process can begin when the first frame is ready for this, there is no need to wait until all frames are processed.
So the situation. Is the TPL data stream suitable for this? If so, can someone give me a hint in the right direction on how to create a tpl block structure to reflect the process described above? It seems pretty complicated to me compared to some of the samples I found.