Fastest Way for Threads to Display on Picture Boxes?

E

eric_berlin

I am writing a multithreaded application that has 6 threads each
writing 5 frames per second video bitmaps to a different picture box.
I have just found out that only the main UI thread is supposed to
interact with Windows Fourms. What is the fastest way to have a non UI
thread safely write a bit map to a picture box?
 
J

Jon Shemitz

I am writing a multithreaded application that has 6 threads each
writing 5 frames per second video bitmaps to a different picture box.
I have just found out that only the main UI thread is supposed to
interact with Windows Fourms. What is the fastest way to have a non UI
thread safely write a bit map to a picture box?

Any thread can do CreateGraphics on any control (at any time) and then
safely write on that control (at any time).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top