I have a Flutter canvas , and I'd like to save that canvas as a bitmap image (e.g. PNG, but any common bitmap format will do). What's the best way to get the bits out of a canvas, converted to a bitmap image format?
Thanks very much!
PictureRecorder
.Canvas
with your PictureRecorder
and draw stuff.endRecording()
on the PictureRecorder
to get a Picture
.toImage()
on the Picture
.toByteData()
on the Image
. Oops, this isn't implemented yet. I filed an issue.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With