Re: Can I get the screen resolution via Gdk/Gtk ?



James Su <suzhe gnuchina org> writes:
> 
> I want to get the screen resolution (dpi), but how can I do it within
> gdk/gtk?
> 

gdk_screen_width_mm() gives size in millimeters, gdk_screen_width()
size in pixels, the math to get pixels per millimeter is pretty
simple.

Beware though, for many X servers the millimeter size will be
completely bogus.

Havoc




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]