0

I took a picture using the camera app and when I stored it using a Bitmap this is what it looks like: Picture of a KitKat that was stored using a Bitmap

Why is the image so blurry? Is there another way to capture the image without distorting the quality?

Edit: Code for how the image is being captured and previewed

override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {
    super.onActivityResult(requestCode, resultCode, data)
    if (requestCode == CAMERA_REQUEST_CODE) {
        val foodBitmap = Objects.requireNonNull(Objects.requireNonNull(data)!!.extras)!!["data"] as Bitmap
        food_image.setImageBitmap(foodBitmap)
    }
}
Bert Hanz
  • 417
  • 1
  • 7
  • 16

0 Answers0