Rendering to a single Bitmap object from multiple threads

Posted by Lee Treveil on Stack Overflow See other posts from Stack Overflow or by Lee Treveil
Published on 2009-03-16T01:41:26Z Indexed on 2010/04/07 3:03 UTC
Read the original article Hit count: 386

Filed under:
|
|
|
|

What im doing is rendering a number of bitmaps to a single bitmap. There could be hundreds of images and the bitmap being rendered to could be over 1000x1000 pixels.

Im hoping to speed up this process by using multiple threads but since the Bitmap object is not thread-safe it cant be rendered to directly concurrently. What im thinking is to split the large bitmap into sections per cpu, render them separately then join them back together at the end. I haven't done this yet incase you guys/girls have any better suggestions.

Any ideas? Thanks

© Stack Overflow or respective owner

Related posts about c#

Related posts about bitmap