Results 1 to 6 of 6

Thread: SetDIBitsToDevice

  1. #1

    Thread Starter
    Addicted Member Vegeta's Avatar
    Join Date
    Jul 2002
    Posts
    159

    Angry 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

  2. #2

    Thread Starter
    Addicted Member Vegeta's Avatar
    Join Date
    Jul 2002
    Posts
    159
    push

  3. #3

    Thread Starter
    Addicted Member Vegeta's Avatar
    Join Date
    Jul 2002
    Posts
    159
    is there no other function that copies an array of bytes as a bitmap into a picture box, but much faster?

  4. #4
    Fanatic Member
    Join Date
    Dec 2003
    Posts
    703
    1. Don't use a picturebox.
    2. Don't use GDI, use DirectX if performance is a concern.
    3. Use C/C++
    an ending

  5. #5

    Thread Starter
    Addicted Member Vegeta's Avatar
    Join Date
    Jul 2002
    Posts
    159
    picture box or form.... both slow as hell
    and how to do that in directx?

  6. #6
    Fanatic Member
    Join Date
    Dec 2003
    Posts
    703
    I don't know, you'd have to learn about DirectX..plenty of documentation available.
    an ending

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width