Hello,
I’m using a Gtk.WidgetPaintable
to take screenshots of some widgets for documentation purposes. It works perfectly when I snapshot the paintable at the same size as the widget:
However, when I snapshot it at a bigger size (applying a scale factor to the dimensions passed to Gtk.WidgetPaintable.snapshot()
), the text is clear but the image (although it is an SVG) is upscaled:
Is there a way to have the GtkImage rendered at the given size?
I’m using this in a headless Weston compositor, I tried to set its scale setting to the same value but it did not seem to change anything.