Android camera拍照分辨率

camera拍照,拍照之前需要设置camera parameter,不然拍照分辨率会按照系统默认的最低分辨率(160x120)来设置,

Camera.Parameters param = mCamera.getParameters();
param.setPictureSize(1920, 1080); //如果不设置会按照系统默认配置最低160x120分辨率
mCamera.setParameters(param);

mCamera.takePicture(null, null, pictureCallback);
PictureCallback pictureCallback=new PictureCallback(){
public void onPictureTaken(byte[] data,Camera camera)
//save picture
};

你可能感兴趣的:(Android,Camera)