Android Question camEx GetMaxZoom - what does represent?

js486dog

Active Member
Licensed User
Longtime User
Please what does represent the number of camEx.GetMaxZoom ?
My phone has camEx.GetMaxZoom=10 .
What does it mean ?
10 of what ?
10% bigger image which is visible in the camera window than image with zoom=0 ?

How can I do the relation between the camEx.GetMaxZoom and the panel width ?

for camEx.Zoom = 0 panel1.width = 100%x
for camEx.Zoom = camEx.GetMaxZoom panel1.width = ?
 

js486dog

Active Member
Licensed User
Longtime User
Add this sub to CamEx:
B4X:
Public Sub GetZoomRatios As List
   r.Target = parameters
   Return r.RunMethod("getZoomRatios")
End Sub

This returns a list with the ratio of each zoom level.
https://developer.android.com/reference/android/hardware/Camera.Parameters.html#getZoomRatios()


Thank you very much.

It works fine.

Maybe to some another begginers as I am:
Add the sub from Post2 to CameraExClass module
and
use in Main module as camEx.GetZoomRatios (camEx As CameraExClass).
 
Last edited:
Upvote 0
Top