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

BufferedImage to skija image #155

Open
ebilgili577 opened this issue Jan 6, 2024 · 1 comment
Open

BufferedImage to skija image #155

ebilgili577 opened this issue Jan 6, 2024 · 1 comment

Comments

@ebilgili577
Copy link

How do i convert a bufferedImage to a skija image?

@tonsky
Copy link
Collaborator

tonsky commented Jan 7, 2024

If you can get access to raw color information as byte[], then use Image.makeRasterFromBytes https://github.com/HumbleUI/Skija/blob/a63330f37f24d57b457e625d861b121689c8d182/examples/scenes/src/BitmapImageScene.java#L95-L100

JFYI this repo is not supported, supported version is at https://github.com/HumbleUI/Skija/

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