Skip to content

Commit 5bea1bb

Browse files
committed
code snippet cleanup
1 parent 82e5d6e commit 5bea1bb

File tree

1 file changed

+1
-1
lines changed
  • document-scanner-ready-to-use-ui-example/app/src/main/java/com/example/scanbot/doc_code_snippet

1 file changed

+1
-1
lines changed

document-scanner-ready-to-use-ui-example/app/src/main/java/com/example/scanbot/doc_code_snippet/ImageRefSnippet.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ fun saveImageRefToFile(imageRef: ImageRef, destinationFile: File) {
172172

173173
// @Tag("Convert ImageRef to Bitmap")
174174
fun getBitmapFromImageRef(imageRef: ImageRef) {
175-
val bitmap = imageRef.toBitmap().getOrNull()
175+
val bitmap = imageRef.toBitmap().getOrNull()
176176
imageRef.close() // clear imageRef from native memory if don't needed anymore
177177
// use the bitmap as usual
178178
}

0 commit comments

Comments
 (0)