How to capture image from custom CameraView in Android?

后端 未结 6 696
孤街浪徒
孤街浪徒 2020-11-29 18:36

i need to capture image from required portion of the screen.

capture image from camera.

6条回答
  •  悲&欢浪女
    2020-11-29 19:11

    you can use surface view.after capture image u can get in bitmap and draw canvas also

    http://developer.android.com/reference/android/view/View.html#onDraw(android.graphics.Canvas)

    http://developer.android.com/reference/android/view/SurfaceView.html#setZOrderMediaOverlay(boolean)

提交回复
热议问题