I’m trying to implement a zoom functionality on Gtk Picture. I tried it with css transform scale but it does not activates scrollable window. What is the proper way to implemet zoom?
Hi,
GtkPicture is probably not the right widget for that. It’s not designed for zooming, but for best-fit (or 1:1) displaying.
You may want to implement a custom widget instead, and manage measure/allocate/snapshot yourself.
There is a good example in gtk4-demo
> “Image scaling”.
1 Like