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

Background color line because of Float wrapping to Int #23

Open
Lulixue opened this issue Aug 17, 2022 · 2 comments
Open

Background color line because of Float wrapping to Int #23

Lulixue opened this issue Aug 17, 2022 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@Lulixue
Copy link

Lulixue commented Aug 17, 2022

Background color is white, after big zoom-in in a high resolution picture, white line(s) appears.

it should be a precision loss issue from float to int in drawBitmap.

Could you fix it please?

image

@tom5079 tom5079 self-assigned this Aug 17, 2022
@tom5079 tom5079 added the bug Something isn't working label Aug 17, 2022
@tom5079
Copy link
Owner

tom5079 commented Aug 17, 2022

Can you provide me the image and the size of the phone screen you are using?

@Lulixue
Copy link
Author

Lulixue commented Aug 18, 2022

image: https://github.com/Lulixue/ComposeTest/blob/master/app/src/main/res/drawable/mengdian.jpg

Phone resolution: 1080 * 2340

@Lulixue Lulixue changed the title Background color line because of Float wrap to Int Background color line because of Float wrapping to Int Aug 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants