开发者

why camera output is returned as a low resolution quality?

开发者 https://www.devze.com 2023-03-13 00:39 出处:网络
Hey guys I have a question about output after taking picture. I have these codes private static final int CAMERA_PIC_REQUEST开发者_运维知识库 = 1337;

Hey guys I have a question about output after taking picture. I have these codes

private static final int CAMERA_PIC_REQUEST开发者_运维知识库 = 1337;



Intent cameraIntent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
startActivityForResult(cameraIntent, CAMERA_PIC_REQUEST);

Actually, I tried to use

cameraIntent.putExtra(MediaStore.EXTRA_OUTPUT, 
MediaStore.Images.Media.EXTERNAL_CONTENT_URI.toString());

But the output is still the same so, anyone can solve this problem for me it would be great if you post example codes :)

Thanks in advance


this should be a camera parameters setPictureSize(int , int) method

http://developer.android.com/reference/android/hardware/Camera.Parameters.html

0

精彩评论

暂无评论...
验证码 换一张
取 消