Android Question CamEx picture quality

HAH

Well-Known Member
Licensed User
In new phones; their resolutions/image sizes are high, i want any way to set image quality or image size smaller than their predefined sizes?
Any suggestion please..
 

HAH

Well-Known Member
Licensed User
Thank you
Solved
B4X:
Sub Camera1_Ready (Success As Boolean)
    If Success Then
        Dim w As Int = 100000
        Dim h As Int = 100000
        For Each cs As CameraSize In CamEx.GetSupportedPicturesSizes
            If w>cs.Width Then w=cs.Width
            If h>cs.Height Then h=cs.Height
        Next
        CamEx.SetPictureSize(w,h)
        CamEx.SetJpegQuality(100)
        CamEx.SetContinuousAutoFocus
        CamEx.CommitParameters
        CamEx.StartPreview
    Else
        ToastMessageShow("Cannot open camera.", True)
    End If
End Sub
 
Upvote 0
Top