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

java.lang.IllegalArgumentException: x + width must be <= bitmap.width() #33

Open
alcalcalc opened this issue Apr 19, 2021 · 1 comment

Comments

@alcalcalc
Copy link

                    right = ((float) mLlCameraCropContainer.getRight() - (float) mCameraPreview.getLeft()) / (float) mCameraPreview.getWidth();
@alcalcalc alcalcalc changed the title right = ((float) mLlCameraCropContainer.getRight() - (float) mCameraPreview.getLeft()) / (float) mCameraPreview.getWidth(); java.lang.IllegalArgumentException: x + width must be <= bitmap.width() Apr 19, 2021
@higsx
Copy link

higsx commented Jul 30, 2021

原因是 某些机型设置横屏无效 ,按照截图修改,将横屏的设置放在 android.manifest 里面就行了
image
image

setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
这行代码的问题

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

2 participants