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

Not receiving full composable ImageBitmap on desktop jvm #2

Open
khebrati opened this issue Jul 6, 2024 · 2 comments
Open

Not receiving full composable ImageBitmap on desktop jvm #2

khebrati opened this issue Jul 6, 2024 · 2 comments

Comments

@khebrati
Copy link

khebrati commented Jul 6, 2024

The composable function that I am trying to take a screen shot of is a screen with a long height that is scrollable. I have noticed that no matter what composable function I pass to your library's "captureToImage" function on jvm desktop, it will output an ImageBitmap with height : 768 and width: 1024. So in my case, to ImageBitmap lacks 70 percent of the composable height because it doesn't fit in 768 pixels! Is there any way we can change this? I mean, is it configurable in this version of your library? and if it's not, please guide me to the changes I can make to the source code to make this happen. thanks in advance!

@khebrati
Copy link
Author

khebrati commented Jul 7, 2024

I just checked and there is a similar problem in android. I get very weird and huge bitmap height and width passing my composables, things like 840 * 15000, 665 * 15000 , 15000 * 15000 ( Idk why it insists on 15000!). it also doesn't preserve the aspect ratio

@mahozad
Copy link
Owner

mahozad commented Jul 9, 2024

Sorry for the late response. I will check to see what I can do.

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