Skip to content

Commit

Permalink
Merge pull request google-ai-edge#207 from YueDev/main
Browse files Browse the repository at this point in the history
Fixed a preview issue with OverlayView.
  • Loading branch information
PaulTR committed Aug 15, 2023
2 parents 57de76b + 48cde7b commit 5b6bb34
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class OverlayView(context: Context?, attrs: AttributeSet?) :
val confidence = byteBuffer.get()

val color =
Color.argb(255 * confidence, 0.0f, 0.0f, 128.0f)
Color.argb((255 * confidence).toInt(), 0, 0, 128)
pixels[i] = color
}
val image = Bitmap.createBitmap(
Expand Down

0 comments on commit 5b6bb34

Please sign in to comment.