【问题标题】:how to make camera brightness full while capturing an image如何在拍摄图像时使相机亮度充满
【发布时间】:2017-02-06 09:04:26
【问题描述】:

谁能告诉我如何在捕获图像时使相机亮度达到最高。我在主要活动中使用隐式意图打开相机活动,所以无论如何我可以在启动相机应用程序时和之后使亮度充满拍照我想在启动相机应用程序之前使亮度保持原样 我已经尝试过这段代码 -

WindowManager.LayoutParams layout = getWindow().getAttributes();
        layout.screenBrightness = 1F;
        getWindow().setAttributes(layout);
but it does not give the right thing

【问题讨论】:

    标签: java android


    【解决方案1】:

    您可以使用setWhitBalance() 方法或setExposureCompensation() 方法。

    【讨论】:

      猜你喜欢
      • 2017-06-15
      • 1970-01-01
      • 2011-10-10
      • 1970-01-01
      • 1970-01-01
      • 2014-04-04
      • 1970-01-01
      • 1970-01-01
      • 2016-02-13
      相关资源
      最近更新 更多