Last active
January 5, 2024 11:55
-
-
Save lumixraku/b40fc2479b76d7ebb2b356de5a9c7780 to your computer and use it in GitHub Desktop.
Unit8Array to Image, SkiaImage
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const blob = new Blob([skiaImage.encodeToBytes()], { type: 'image/png' }) | |
const imageUrl = URL.createObjectURL(blob); | |
const img = new Image(); | |
img.src = imageUrl; | |
document.body.appendChild(img) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment