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