Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问关于前后摄像头 #45

Open
Forsaken-sl opened this issue Mar 1, 2017 · 0 comments
Open

请问关于前后摄像头 #45

Forsaken-sl opened this issue Mar 1, 2017 · 0 comments

Comments

@Forsaken-sl
Copy link

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这个代表个啥呢,有点不理解,可以解答下吗?谢谢。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant