A faster way to change pixels than SetPixel ()

I am trying to use SetPixelV for windows to display the image directly on the screen, as I am sure that you know that it is unbearably slow and too slow for what I will not use it. Can someone point me in the right direction, how to show directly on the screen (not in the window) which is faster than SetPixelV? (It is not necessary to be platform independent)

+4
source share
3 answers

You can create your image in memory and use SetDIBitsToDevice to copy it.

+4
source

You can call BitBlt . Suppose you already have the whole image - it does not set individual pixels (unless you blit a bunch of single-pixel images, but then you are probably in a worse position than where you started in speed).

+2
source

Perhaps BitBlit is what you are looking for.

+1
source

Source: https://habr.com/ru/post/1401264/


All Articles