camerakit-android icon indicating copy to clipboard operation
camerakit-android copied to clipboard

How to shoot square and square images?

Open Steadyoung opened this issue 6 years ago • 4 comments

How to shoot square and square images?

Steadyoung avatar Jun 17 '19 02:06 Steadyoung

How to shoot square video and square images?

Steadyoung avatar Jun 17 '19 02:06 Steadyoung

Would also love to know this. The docs dont show how to do this.

TrentPierce avatar Sep 16 '19 02:09 TrentPierce

You just have to add this:

XML app:camera_aspectRatio="1"
Java cameraKitView.setAspectRatio(1f)

With that the camera will be a square

MikelCalvo avatar Oct 17 '19 11:10 MikelCalvo

您只需要添加以下内容:

XML格式 app:camera_aspectRatio =“ 1” 爪哇 cameraKitView.setAspectRatio(1f) 这样,相机将成为正方形

只是预览变成了正方形,拍摄返回的图片跟预览不一致怎么解决?拍摄得到的照片是全屏的

wangchang163 avatar Oct 28 '19 07:10 wangchang163