image processing - In Android Camera parameters, What is the relation between PictureSize() , PreviewSize and display size? -


consider want picture of size 400*400, camera supports picture size of 320*240,640*480,1024*768 etc...

my 1st question:

which gives me better quality image in below 2 options

  • setpicturesize 640*480. once picture taken crop 480*480 scale 400*400
  • setpicturesize 1024*768. once picture taken crop 768*768 scale 400*400

my 2nd question:

i tested output of getsupportedpreviewsize in many android devices , in devices returns display resolution 1 of valid supported preview size. true android devices?

my 3rd question

does preview size affects quality of image?

my 4th question

consider using framelayout preview camera, relation between preview size , framelyoutsize. should change dimension of framelyout based on size of preview

thanks in advance. sorry asking lengthy question.

why can't crop 400x400? there no way tell scaledown turn out worse , lot of factors apply. less scaling better.

the getsupportedpreviewsizes return @ least 1 resolution in android device api of 5 or greater: http://developer.android.com/reference/android/hardware/camera.parameters.html#getsupportedpreviewsizes() note: maximum resolution of device not supported, 640x480 supported.

picture size image size while preview size used altering image based on current device orientation. can scale image more if not taken care of properly. in short, can affect quality, not of actual file: http://developer.android.com/reference/android/hardware/camera.parameters.html#setpicturesize(int, int)

your frame layout may fill whatever area have , stretched fill area. should not affect quality of actual picture taken.


Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -