toBitmap
Gets the Android Bitmap of this Image.
val bitmap = previewViewRef.takeSnapshot().toBitmap()Content copied to clipboard
Throws
If this Image was not created by VisionCamera.
Converts this Photo to an Android Bitmap, with its Photo.orientation and mirroring applied.
Same as Photo.toImage followed by Image.toBitmap(). RAW photos can not be converted.
Throws
If this Photo was not created by VisionCamera.