iOS Question LLCamera & Aspect Ratio

SlashIT

Member
Licensed User
Longtime User
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
 

SlashIT

Member
Licensed User
Longtime User
Set PreserveRatio to true and explicitly set one of the preset constants.
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
how can I do with LLCamera?
thank you
 
Upvote 0
Top