camerakit-android
camerakit-android copied to clipboard
How to shoot square and square images?
How to shoot square and square images?
How to shoot square video and square images?
Would also love to know this. The docs dont show how to do this.
You just have to add this:
| XML | app:camera_aspectRatio="1" |
|---|---|
| Java | cameraKitView.setAspectRatio(1f) |
With that the camera will be a square
您只需要添加以下内容:
XML格式 app:camera_aspectRatio =“ 1” 爪哇 cameraKitView.setAspectRatio(1f) 这样,相机将成为正方形
只是预览变成了正方形,拍摄返回的图片跟预览不一致怎么解决?拍摄得到的照片是全屏的