-
SetDIBitsToDevice
The API Call "SetDIBitsToDevice" for painting the bitmap data in an specific array onto a picture or form is terribly slow.
To copy a 640x480 24bit area to a picturebox with "Autorefresh" switched to false takes about 12ms. That would be a frame rate of 80 or less if there a further calculations in my app.
How can I speed up that API call?
thanks for any help
-
-
is there no other function that copies an array of bytes as a bitmap into a picture box, but much faster?
-
1. Don't use a picturebox.
2. Don't use GDI, use DirectX if performance is a concern.
3. Use C/C++ ;)
-
picture box or form.... both slow as hell
and how to do that in directx?
-
I don't know, you'd have to learn about DirectX..plenty of documentation available.