Hi all,
I am using an older version of Android (1.6) for some old phones we
are
testing with.
i was able to set the preview orientation as portrait but the images
still
appear as landscape when I save them on sdcard and extract them to
a laptop for viewing. If I reverse the params for the setPictureSize
to (320,480)
I get the pics orientation to be portrait but the contents are still
horizontal.
Any ideas? Thanks
public void surfaceChanged(SurfaceHolder holder, int format,
int w,
int h) {
Camera.Parameters parameters = mCamera.getParameters();
parameters.set("orientation", "portrait");
parameters.setPreviewSize(480,320);
parameters.setPictureSize(480,320);
mCamera.setParameters(parameters);
mCamera.startPreview();
}
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en