Camerakit-android: How to shoot square and square images?

Created on 17 Jun 2019  ·  4Comments  ·  Source: CameraKit/camerakit-android

How to shoot square and square images?

Most helpful comment

How to shoot square video and square images?

All 4 comments

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)
这样,相机将成为正方形

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mnayef95 picture mnayef95  ·  4Comments

shaik41 picture shaik41  ·  7Comments

ritesh94 picture ritesh94  ·  6Comments

pinigtech picture pinigtech  ·  4Comments

mhwu1103 picture mhwu1103  ·  6Comments