This will require a custom image processing library that supports image tilling and a way to implement custom image viewer that is not based on Gtk.Picture.
~~libvips looks like a good contender and it appears to support tilling (required to zoom on images without going OOM).
There is a complete image viewer made using vips, which could be useful to see how the zoom is implemented here.~~
Disregard what's written above. This can be achieved by subclassing Gdk.Texture. There are examples available in GTK4 Demo, Tuba and Extension Manager.
This will require a custom image processing library that supports image tilling and a way to implement custom image viewer that is not based onGtk.Picture
.~~libvips looks like a good contender and it appears to support tilling (required to zoom on images without going OOM). There is a complete image viewer made using
vips
, which could be useful to see how the zoom is implemented here.~~Disregard what's written above. This can be achieved by subclassing
Gdk.Texture
. There are examples available in GTK4 Demo, Tuba and Extension Manager.Related #11