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

Export image of the view #46

Open
Kadmas opened this issue Mar 25, 2023 · 2 comments
Open

Export image of the view #46

Kadmas opened this issue Mar 25, 2023 · 2 comments

Comments

@Kadmas
Copy link

Kadmas commented Mar 25, 2023

Hello,

Is it possible to export an image of the view as a png? Also Is it also possible to use doodle in conjunction with other libraries e.g. compose with a doodle view? If so can we get examples of these?

Thanks

@pusolito
Copy link
Collaborator

pusolito commented Mar 25, 2023

Are you working on web, desktop or both? And can you say more about your use case for integrating Doodle and Compose?

You can use a Doodle app in conjunction with any web framework by embedding it in an HTML element. You would need to do this at the app level, so not a single view. Unless you create an app to just host that view. To do this you'd call the application method with the element you want to host the Doodle app in.

On desktop Doodle currently doesn't integrate with Compose. It does share the same underlying library: Skiko. So it could theoretically interoperate, but that would require exposing some internal details.

As for screenshots; this functionality does not exist yet. Are you looking to don this for a web or desktop app?

@Kadmas
Copy link
Author

Kadmas commented Mar 26, 2023

I'm interested in both web and desktop. I wouldn't say it's a use case so much as I'd rather not have to replace existing code. This is coming up because I'm not seeing drawing capabilities in Jetbrains compose (maybe I'm wrong, but I only saw a canvas element).

For screen shots I'd like to run this in a headless manner so either one would work.

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