How to write a WebCam application using Directshow to preview and capture in portrait and landscape mode?
Posted on 2009-04-06
I have written an application using C Plus Plus and DirectShow that can preview and capture images in landscape mode. I dont know how to change the mode from landscape to portrait. So the application can do preview and capture for resolutions such as 800x600 or 1200x900. But what I need is, the application should also be able to do preview and capture for resolutions such as 900x1200 or 600x800. We thought of rotating the stream by 90 degrees but it isn't actually a solution.
I tried to find the solution over net but unsuccessful. I think the Camera in itself need to support the portrait resolutions such as 900x1200 along with the landscape resolutions but I could not find a justifying referece to confirm it.
Any help in this issue is highly appreciated.