意图拍照分辨率更高? [英] Intent to take photo with better resolution?

查看:116
本文介绍了意图拍照分辨率更高?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序正在使用此意图拍照:
startActivityForResult(新意图(MediaStore.ACTION_IM​​AGE_CAPTURE) TAKE_PICTURE);
但是分辨率非常低...

My app is using this Intent to take photos:
startActivityForResult(new Intent(MediaStore.ACTION_IMAGE_CAPTURE), TAKE_PICTURE);
But the resolution is really low...

有没有什么办法可以提高分辨率?或我要创建我自己的相机的活动?

Is there any way to improve the resolution? or I have to create my own Camera Activity?

推荐答案

据<一href="http://developer.android.com/reference/android/provider/MediaStore.html">http://developer.android.com/reference/android/provider/MediaStore.html这是设计的行为。

调用者可以通过一个额外的EXTRA_OUTPUT为了控制这一形象将被写入。如果EXTRA_OUTPUT不是present,然后小尺寸图像返回作为额外字段Bitmap对象。这对于应用程序,只需要一个小的图像是有用的。如果EXTRA_OUTPUT为present,那么全尺寸的图像将被写入EXTRA_OUTPUT的URI值。

The caller may pass an extra EXTRA_OUTPUT to control where this image will be written. If the EXTRA_OUTPUT is not present, then a small sized image is returned as a Bitmap object in the extra field. This is useful for applications that only need a small image. If the EXTRA_OUTPUT is present, then the full-sized image will be written to the Uri value of EXTRA_OUTPUT.

这篇关于意图拍照分辨率更高?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆