Fastest method for blitting from a pixel buffer into a device context

前端 未结 1 1423
情深已故
情深已故 2021-01-21 07:03

Good evening,

I have several 32-bit images in memory buffers that I wish to \"blit\" to a device context, quickly. Speed is an issue here because the buffer will be mani

相关标签:
1条回答
  • 2021-01-21 07:11

    There is an API method CreateDIBSection to create a DIB that applications can write to directly. This allows to continuously updating the bitmap (either memcopy or directly writing to it).

    See MSDN article for further details.

    Access to the bitmap must be synchronized. Do this by calling the GdiFlush function.

    0 讨论(0)
提交回复
热议问题