【问题标题】:How to set camera orientation locked to portrait on android如何在android上设置相机方向锁定为纵向
【发布时间】:2019-12-16 14:09:16
【问题描述】:

我正在使用this scan library 构建扫描仪应用程序,如何在库代码中设置方向以将相机方向锁定为纵向?我试过了 Lock Camera orientation to portraitsetting camera orientation to portrait not working

【问题讨论】:

    标签: java android scanning


    【解决方案1】:

    不要使用第三方库

    https://developer.android.com/guide/topics/media/camera

    您可以使用官方的 android 文档来学习如何使用,然后应用您从其他链接中获得的内容。如果您想编辑和裁剪,可以在这些链接中找到更多信息:

    How to crop and rotate image programmatically in android?

    Android: Edit image intent

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多