What is the best method for rendering bitmaps in an MS windows application window?
Posted on 2015-01-30
I'm building a windows based application which will display bitmap frames.
Basically I'm capturing individual frames from a pc camera; doing some analysis
and then wanting to display that frame in a window.
Our current implementation is a 32 bit application is written in unmanaged C++ .
I've looked at the opencv implementation -->> cv::imshow().
Under the covers, what they are doing would work for us.
But, rather than have opencv own the window, we want our app to,
so we can add some additional processing.
opencv's implementation is old school windows with doing BitBlt() and StretchBlt()
during the WM_PAINT messages of the target window (owner draw).
Are there other approaches out there which would answer our needs?
Does GDI++ provide any "rendering an image to a target window" functionality?
If our target changed to be a managed winforms or WPF application, what would be the
best prescribed approach?
Thanks in advice for your advice,