Android 相机宽度和高度取决于方向?
当我们将方向从纵向更改为横向时,Camera.Parameters 中的相机宽度和高度是否会发生变化?
Does camera width and height in Camera.Parameters change when we change orientation from portrait to landscape ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您询问预览宽度和高度,那么是的,这取决于方向。虽然我不认为它本身会改变。更多信息[此处](http://developer.android.com/reference/android/hardware/Camera.Parameters.html#setPreviewSize(int, int))
如果您询问需要捕获的图像,则没有方向不应对宽度和高度产生任何影响。
If you are asking about the preview width and height then yes it depends on the orientation. Although I don't think it changes on its own. More info [here](http://developer.android.com/reference/android/hardware/Camera.Parameters.html#setPreviewSize(int, int))
If you are asking about the image that needs to be captured then no orientation should not have any effect on the width and the height.