When i am showing the camera preview i can see a height, and when i
make the photo, the photo shows more height than the preview. I mean
that i can see objects than i can't see on the preview.
How can i solve it?
THese are the parameters of my camera:
public void surfaceChanged(SurfaceHolder holder, int format, int
w, int h) {
if (mPreviewRunning) { //stopPreview() will crash if
preview is not
running
camera.stopPreview();
}
Camera.Parameters p = camera.getParameters();
p.setPreviewSize(w, h);
p.setPictureSize(1024, 768);
camera.setParameters(p);
try {
camera.setPreviewDisplay(holder);
} catch (IOException e) {e.printStackTrace();}
camera.startPreview();
mPreviewRunning = true;
}
--
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