Skip to content

请问关于前后摄像头 #45

Description

@Forsaken-sl

CameraActivity中,saveToSDCard方法:
if (mCurrentCameraId == 1) {
r = new Rect(height - PHOTO_SIZE, 0, height, PHOTO_SIZE);
} else {
r = new Rect(0, 0, PHOTO_SIZE, PHOTO_SIZE);
}

请问这里为什么要根据不同的摄像头设定不同的截图范围呢,然后height-PHOTO_SIZE这个代表个啥呢,有点不理解,可以解答下吗?谢谢。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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