Camera with no distortion

piedy

Member
Licensed User
Longtime User
Hi All,

I have an app which works in portrait mode only and want the user to take a 300x225 sized photo. Can anyone advise on the best way of doing this and viewing the photo that is taken?

At the moment, I am using the CameraExClass module, using the whole screen in portrait mode used as the live preview (as per the example), and when the user takes a photo the image (640x480) is resized and rotated 90 degrees and then viewed in a 4:3 panel in an activity. But, the image looks distorted.:sign0163:

Very many thanks.
 

piedy

Member
Licensed User
Longtime User
B4X:
panelView.SetLeftAndRight(3.125%x, 96.875%x)
panelView.SetTopAndBottom(5%y, 51.875%y)

Sounds strange, but if 100%x=320 and 100%y=480 then you get the correct size image on a 320x480 screen. I guess the distortion is coming in because my test phone (a Samsung SII) has a bigger resolution.
 
Upvote 0
Top