Determining Camera Resolution (i.e. Megapixels) Programmatically in Android

后端 未结 5 467
感情败类
感情败类 2020-12-09 03:44

I am developing an Android application in 2.2, which uses Camera. Now Can anyone tell me that \"Is it possible to programmatically determine the Camera Resolution in Megapix

5条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-09 03:52

    You can you this to get the list of supported sizes. getSupportedSizes()

    The highest size would give you the camera resoultion in pixels.

    EDIT: Just in case you do not know.

    Resolution in pixel = width X height

提交回复
热议问题