richgrundy
Lurker
Hi guys.
I'm creating an android app for photographers as part of a project at school and could do with a bit of help.
I'm making a long exposure calculator, this allows the user to input their current shutter speed, select a EV (exposure value) and then click calculate to work out an equivalent exposure.
Both the current shutter speed and the desired EV change are selected from spinners as you can see in the attached screenshot.
The resulting equivalent exposure is dependent on the two variables.
For example:
Current Shutter Speed: 1/100
EV: +1
Equivalent Shutter Speed = 1/50
Current Shutter Speed: 1/100
EV: +2
Equivalent Shutter Speed = 1/25
The only way I've worked out how to do this for all the variables is a MASSIVE if statement:
If shutter speed is 1/100 and EV is +2, therefore equivalent shutter speed is 1/25.
There are 20 different shutter speeds and 10 different EV values, so that's going to be loads of IFs.
Anybody have a better idea about how I could possibly do this?
Any help would be hugely appreciated!
I'm creating an android app for photographers as part of a project at school and could do with a bit of help.
I'm making a long exposure calculator, this allows the user to input their current shutter speed, select a EV (exposure value) and then click calculate to work out an equivalent exposure.
Both the current shutter speed and the desired EV change are selected from spinners as you can see in the attached screenshot.
The resulting equivalent exposure is dependent on the two variables.
For example:
Current Shutter Speed: 1/100
EV: +1
Equivalent Shutter Speed = 1/50
Current Shutter Speed: 1/100
EV: +2
Equivalent Shutter Speed = 1/25
The only way I've worked out how to do this for all the variables is a MASSIVE if statement:
If shutter speed is 1/100 and EV is +2, therefore equivalent shutter speed is 1/25.
There are 20 different shutter speeds and 10 different EV values, so that's going to be loads of IFs.
Anybody have a better idea about how I could possibly do this?
Any help would be hugely appreciated!