I have been trying to use SetPixelV for windows to display an image directly on the screen, as I am sure you know it is unbearably slow, and too slow for what I wan't to use it for. Could anyone point me in the right direction of how to Display Directly to the Screen (not in a window) that is faster the SetPixelV? (Does not have to be platform-independent)
You can build up your image in memory and use SetDIBitsToDevice
to copy it.
You could call BitBlt
. That's assuming you already have the whole image — it doesn't set individual pixels (unless you blit a bunch of one-pixel images, but then you'd probably be in a worse position than where you started, speed-wise).
Maybe BitBlit is what you're looking for.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With