如何获取Android摄像头的焦距
答案:2 悬赏:20 手机版
解决时间 2021-02-28 04:37
- 提问者网友:我是女神我骄傲
- 2021-02-27 12:00
如何获取Android摄像头的焦距
最佳答案
- 五星知识达人网友:大漠
- 2021-02-27 12:34
private void initializeZoom() {
if (!mParameters.isZoomSupported()) return;
// Maximum zoom value may change after preview size is set. Get the
// latest parameters here.
mParameters = mCameraDevice.getParameters();
mZoomMax = mParameters.getMaxZoom();
mSmoothZoomSupported = mParameters.isSmoothZoomSupported();
mGestureDetector = new GestureDetector(this, new ZoomGestureListener());
mCameraDevice.setZoomChangeListener(mZoomListener);
}
set zoom: mParameters.setZoom(xxx);
set focus mode: setFocusMode(String value);
if (!mParameters.isZoomSupported()) return;
// Maximum zoom value may change after preview size is set. Get the
// latest parameters here.
mParameters = mCameraDevice.getParameters();
mZoomMax = mParameters.getMaxZoom();
mSmoothZoomSupported = mParameters.isSmoothZoomSupported();
mGestureDetector = new GestureDetector(this, new ZoomGestureListener());
mCameraDevice.setZoomChangeListener(mZoomListener);
}
set zoom: mParameters.setZoom(xxx);
set focus mode: setFocusMode(String value);
全部回答
- 1楼网友:风格不统一
- 2021-02-27 14:03
我是来看评论的
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯