Gtk::Image and HiDPI
- From: Kasper Peeters <kasper peeters phi-sci com>
- To: gtkmm-list <gtkmm-list gnome org>
- Subject: Gtk::Image and HiDPI
- Date: Fri, 8 Feb 2019 19:40:06 +0000
When I set the content of a Gtk::Image from a pixbuf, gtk seems to be
scaling up the visible size by the HiDPI scale factor. That is, if I
feed it a pixbuf of 100x100 pixels, on a screen with scale factor 2, it
will be upscaled to cover 200x200 device pixels, making it blocky.
Is there any way in which I can tell gtk not to do that, so that when I
feed it a 200x200 image, it will actually draw it at 200x200 device
pixels, not 400x400 device pixels?
Thanks,
Kasper
[Date Prev][
Date Next] [Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]