gtk-rs / gtk3-rs

Rust bindings for GTK 3
https://gtk-rs.org
MIT License
508 stars 90 forks source link

[HELP] write_to_png method in the ImageSurface not found. #747

Closed DanielHa1018 closed 2 years ago

DanielHa1018 commented 2 years ago

https://github.com/gtk-rs/gtk3-rs/blob/master/examples/cairo_png/main.rs

Hello. I am developing software that save to png file from context such as the above example. I did draw many figures with context obtained from Context::new(&surface) then tried to save it but the method "write_to_png" doesn't exist.

Any help for me?