Skip to content

在portrait屏幕下,设置了SurfaceView 高度,白屏,相机好像没打开 #2

@zj2050

Description

@zj2050

在portrait屏幕下,设置了SurfaceView 高度 和
public static final int WidthPixel = 1080; // 水平像素
public static final int HeightPixel = 607; // 垂直像素

运行有红框,但白屏,好像相机没打开???

但改成landscape的初始状态,可以识别

跟踪发现是 camera.setParameters(params); // 将参数设置给相机
屏蔽这个就可以打开相机了,

使用 camera.setDisplayOrientation(90); 旋转90度后, 相机里面的图片被压缩成条状了,

请问在何处控制的?谢谢

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions