Click here to Skip to main content
15,891,905 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm trying to implement landscape camera preview in portrait orientation also taken pictures in landscape, I have tried setting camera parameter rotation and degrees
parameters.setRotation(rotation)
but no luck.

I just want to ask if this is possible? Or anyone can guide me to any sample documentation? I have tried searching and struggle debugging days now.

Thank you.

What I have tried:

Camera.Parameters parameters = mCamera.getParameters();
				parameters.setRotation(rotation);
               mCamera.setParameters(parameters); 
Posted
Updated 23-Feb-19 1:55am

1 solution

See setRotation[^], which explains how to calculate the angle relative to he current position of the camera.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900