Rendering to a single Bitmap object from multiple threads

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

    You could use LockBits and work on individual sections of the image.

    For an example of how this is done you can look at the Paint.Net source code, especially the BackgroundEffectsRenderer (yes that is a link to the mono branch, but the Paint.Net main code seems to be only available in zip files).

提交回复
热议问题