Rendering to a single Bitmap object from multiple threads

前端 未结 5 608
执笔经年
执笔经年 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:27

    I've done something similar and in my case I had each thread lock x (depended on the size of the image and the number of threads) many rows of bits in the image, and do their writing to those bits such that no threads ever overlapped their writes.

提交回复
热议问题