In c#, I did the following to get my webcams capabilities, but I am not sure I can change them, they come directly from the camera...
Main Topics
Browse All Topics 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.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
This may help a bit...
http://msdn.microsoft.com/
I also found these pages extremely helpful when I was doing some webcam development, but I am not sure if you will be able to find too much on resolutions in there. I think you can enumerate some resolutions you want if you use the first link. It is up to the camera/driver to agree or not though, you can only request what you want, but it has the final word.
http://msdn.microsoft.com/
Hi!!
Thanks for your time. I have done all these coding such as - getting the capabilities/ resolutions etc. Other things are working fine, there is no issue in that. Cropping, I dont think will really help. You said "If your camera does not support the resolution you want, you will not be able to get that resolution for your camera stream directly.". My understanding is also same. I think if camera doesnt support it, whatever you do in filter graph etc you can not get portrait mode. But my difficulty is that I could not find any proof that will proove this point. By any chance have you come accross any such statement.
I feel I have answered the question fairly well, although I could not give extensive "proof" other than my experiences. Since noone else have contributed, I feel I should at least get some credit, and my links and code will be helpful for others looking for the same issues regarding webcam development.
Business Accounts
Answer for Membership
by: HalfAsleepPosted on 2009-04-16 at 02:44:33ID: 24155849
You are right when you say that the resolution comes from the camera. You have to find out if your camera that supplies the stream, can be told what resolution to use. If your camera does not support the resolution you want, you will not be able to get that resolution for your camera stream directly.
You can of course crop the landscape stream, to make it appear to be a portrait. This means losing some fidelity/resolution.