Skip to content

Saving Pure Filtered Image #926

Answered by wcandillon
okaforcj asked this question in Q&A
Sep 14, 2022 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

You can use the picture PictureRecorder to get a binary representation of the image + the skia operations applied to it.
You can convert these pictures into png encoded image on your backend (if you have Skia available).
Currently makeImageSnapshot is actually using the picture recorder to get the png of the canvas.
We may offer a way to go from Picture to an Image directly. Right now makeImageSnapshot is your best bet. Let us know if you have specific requirements such as scaling the picture before converting it into an image.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@okaforcj
Comment options

@wcandillon
Comment options

@okaforcj
Comment options

Answer selected by okaforcj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants