Android Question image size

Douglas Farias

Expert
Licensed User
Longtime User
how i set the minimal Supported sizes for my photo when i press take photo?
i have 2 camera
back camera suport 1600x1200
front camera suporte 640x480
its possible set a minimal size?

i want to take a photo with size
320x240


in the exemple of camex it take a photo with the max size
1600x1200 *-*

i need 320x240

how i set this?

i m using this library

when i press change image size work i set 320x240 and take a photo with works
but in my app i dont go use button to change image size
i need to set minimal image size

http://www.b4x.com/android/forum/th...e-camera-library-functionality.23801/#content
 

DonManfred

Expert
Licensed User
Longtime User
Look what the buttons do to change the size... and then write the same in your code directly.
 
Upvote 0

Douglas Farias

Expert
Licensed User
Longtime User
thx i fixed
i m noob xD

B4X:
Sub Camera1_Ready (Success As Boolean)
    If Success Then
        camEx.SetJpegQuality(100)
        camEx.SetPictureSize(320,240)
        camEx.CommitParameters
        camEx.StartPreview
        Log(camEx.GetPreviewSize)
    Else
        ToastMessageShow("Erro ao abrir a camera.", True)
    End If
End Sub

very simples
now image size is in kb *-* 300kb 200kb
to send to vps *-*
 
Upvote 0
Top