greetings to all
I'm using the library Advance Camera and would like to know how to indicate that the picture is realize with the maximum resolution of the camera.
Using camera1.Picturesize (1080.1920) always happens an exception error.
Someone can tell me how to select the camera resolution for photo or leave defined the resolution of the available one wants?
Thank you
B4X:
ub btnTakePicture_Click
camera1.PictureSize(1080,1920)
Paciente=txtbPaciente.Text
If Paciente="0" Or Paciente="" Then
ToastMessageShow("FALTA NUMERO DE PACIENTE", True)
Else
Paciente=txtbPaciente.Text
btnTakePicture.Enabled = False
camera1.TakePicture
End If
End Sub
You should use CameraEx. Check the supported sizes with CameraEx.GetSupportedPictureSizes and then set it with CameraEx.SetPictureSize.
Should be called from Camera1_Ready before the call to CommitParameters.
Thanks Eres but when I used de CameraEx.....the preview image on the device are not focused....only when click the button focus+takepicture the focus are ok...I need when I click the panel the Autofocus are on....