hazzerjt
hazzerjt

Reputation: 29

Finding the maximum of a range

I have got the range of ISO that the camera suoports, however I do not know how to find the the maximum and minimum of this

Range<Integer> ISO = characteristics.get(CameraCharacteristics.SENSOR_INFO_SENSITIVITY_RANGE);

Upvotes: 1

Views: 54

Answers (1)

Tom Larcher
Tom Larcher

Reputation: 951

The Range object has a getMaximum() method that should achieve what you're looking for. More information on this can be found in the Range documentation.

In order to retrieve the maximum ISO (Integer) from your Range object, you'll need to call the Range.getMaximum() method as per the documentation linked above. So in your case, ISO.getMaximum() will return the maximum ISO Integer in your Range.

I hope that helps!

Upvotes: 1

Related Questions