Rendering to a single Bitmap object from multiple threads

前端 未结 5 594
执笔经年
执笔经年 2020-12-11 18:19

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.

5条回答
  •  不思量自难忘°
    2020-12-11 18:45

    Lee, if you're going to use the Image GDI+ object, you may just end up doing all the work twice. The sections that you generate in multiple threads will need to be reassembled at the end of your divide and conquer approach and wouldn't that defeat the purpose of dividing in the first place?

    This issue might only be overcome if you're doing something rather complex in each of the bitmap sections that would be much more processing time than simply redrawing the image subparts onto the large bitmap without going to all that trouble.

    Hope that helps. What kind of image rendering are you planning out?

提交回复
热议问题