相机表面观看影像显得捉襟见肘捉襟见肘、影像、表面、相机

由网友(Weak)分享简介:在纵向模式下,图像看起来垂直拉伸,在横向模式下它看起来水平拉伸。 In portrait mode, the images look vertically stretched and in landscape mode it looks horizontally stretched. 虽然的后捕捉图像出现在适当的大...

在纵向模式下,图像看起来垂直拉伸,在横向模式下它看起来水平拉伸。

In portrait mode, the images look vertically stretched and in landscape mode it looks horizontally stretched.

虽然的后捕捉图像出现在适当的大小的

如何解决这个问题?

推荐答案

我通过调用camera.start preVIEW()之前加入这个固定的:

I fixed this by adding this before calling camera.startPreview():

Camera.Parameters parameters = camera.getParameters(); 
parameters.setPreviewSize(yourSurfaceView.getWidth(), yourSurfaceView.getHeight());
camera.setParameters(parameters);

这可能帮助别人。

It might help someone.

阅读全文

相关推荐

最新文章