Skip to content Skip to sidebar Skip to footer

Setting Target Resolution For Camerax Not Working As In Documentation

I want to capture photos with fixed resolution (i.e. 1200x1600) using CameraX library. So according to documentation I can set target resolution for ImageCaptureConfig: val imageCa

Solution 1:

Solution 2:

The android documentation say this:

You cannot set both target aspect ratio and target resolution on the same use case. Doing so will throw an IllegalArgumentException when building the config object.

So decide what is mor important for you and choose only one.

Post a Comment for "Setting Target Resolution For Camerax Not Working As In Documentation"