I have a buffer of RGB data ~154K that I need to display 6 times a second. I have tried SetPixelV...it is too slow. Is there a faster way? If DirectDraw is the answer could someone point me in the right direction.
Regards,
D Seed
Printable View
I have a buffer of RGB data ~154K that I need to display 6 times a second. I have tried SetPixelV...it is too slow. Is there a faster way? If DirectDraw is the answer could someone point me in the right direction.
Regards,
D Seed
Pset is definitely slower than SetpixelV plenderj. You can get# the file data into a an array and then compose the bitmap with CreateDIBitmap, and then blit it of a offscreen device context.
I have never used CreateDIBitmap could you point me in the right direction. Or even better maybe an example.
Regards,
D Seed
hbitmap = createDIBitmap(hdc, bmiinfo.bmiheader, cbm_init, buffer(0), bmiinfo, dib_rgb_colors)
you need the bitmapinfo header types (you can find those in win32api.txt) for bmiinfo, buffer is a byte array you read with get# and hdc is the target device context handle.