Hello,
I'm using "LLCamera" to acquire an image from the camera and simultaneously overlay a picture; until here, everything ok.
I want to manually calculate the aspect ratio, how do I get the actual width and height of the camera, so I can calculate the correct aspect ratio of the image overlay?
thank you
Hello Erel,
thanks for the reply but I think you did not understand the question:
in B4A use this code:
B4X:
Globals
...Private camEx As CameraExClass
Activity_create
...camEx.Initialize(Panel1, True, Me, "Camerax")
Sub Camerax_Ready (Success As Boolean)
If Success Then
ratio = camEx.GetPreviewSize.Width / camEx.GetPreviewSize.Height
End If
End Sub