J js486dog Active Member Licensed User Longtime User Mar 22, 2018 #1 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 = ?
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 = ?
Erel B4X founder Staff member Licensed User Longtime User Mar 22, 2018 #2 Add this sub to CamEx: Code: Copy 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() Upvote 0
Add this sub to CamEx: Code: Copy 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()
J js486dog Active Member Licensed User Longtime User Mar 22, 2018 #3 Erel said: Add this sub to CamEx: Code: Copy 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() Click to expand... 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: Mar 22, 2018 Upvote 0
Erel said: Add this sub to CamEx: Code: Copy 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() Click to expand... 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).