简体   繁体   中英

How Capture image using camera 'Circle' overlay and Save it on path in Xamarin.forms (Android)

I am new in xamarin.forms and i wants to make a app using xamarin.forms for capture a image and save in given path. i also want add Camera Overlay to crop image in Circle shape. I have found below sample project-

' https://github.com/CrossGeeks/OverlaySample '

and modified it to add button in common project and call capture event using rendering. capture event successfully fire but image capturing not working because of 'SurfaceView' in above sample.

Please help- How to capture image using 'SurfaceView' .

Thanks in advance.

SurfaceView是在原生的Android使用,你可以创建一个customview包含在Android项目的surfaceview,然后创建一个自定义视图解析器和SetNativeControl(your customview)你可能指的是CameraPreviewRendererNativeCameraPreview班Android项目和CameraPreview表单类项目。更多信息和使用surfaceview的示例可以参考SurfaceView

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM