CameraX PreviewView Screenshot
问题 I want to convert CameraX preview to bitmap from previewView. Something similar to textureView.bitmap I have tried it with a textureview and it works perferctly, i can take a screenshot of the cameraview but the camera is stretched. 回答1: PreviewView now supports screenshot by calling PreviewView.getBitmap(). See: https://developer.android.com/reference/androidx/camera/view/PreviewView#getBitmap() 回答2: I finally found the answer in this link First set preferred implementationmode to