Android 相机宽度和高度取决于方向?

发布于 2024-09-15 17:57:33 字数 58 浏览 1 评论 0原文

当我们将方向从纵向更改为横向时,Camera.Parameters 中的相机宽度和高度是否会发生变化?

Does camera width and height in Camera.Parameters change when we change orientation from portrait to landscape ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

疾风者 2024-09-22 17:57:33

如果您询问预览宽度和高度,那么是的,这取决于方向。虽然我不认为它本身会改变。更多信息[此处](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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文