|
-
Jan 15th, 2004, 07:14 AM
#1
Thread Starter
Addicted Member
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
-
Jan 15th, 2004, 11:08 AM
#2
Thread Starter
Addicted Member
-
Jan 16th, 2004, 03:26 AM
#3
Thread Starter
Addicted Member
is there no other function that copies an array of bytes as a bitmap into a picture box, but much faster?
-
Jan 16th, 2004, 06:06 AM
#4
Fanatic Member
1. Don't use a picturebox.
2. Don't use GDI, use DirectX if performance is a concern.
3. Use C/C++
-
Jan 16th, 2004, 06:47 AM
#5
Thread Starter
Addicted Member
picture box or form.... both slow as hell
and how to do that in directx?
-
Jan 16th, 2004, 06:56 AM
#6
Fanatic Member
I don't know, you'd have to learn about DirectX..plenty of documentation available.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|