Re: Can I get the screen resolution via Gdk/Gtk ?
- From: Havoc Pennington <hp redhat com>
- To: suzhe gnuchina org
- Cc: gtk-list gnome org
- Subject: Re: Can I get the screen resolution via Gdk/Gtk ?
- Date: 28 Jun 2001 01:03:37 -0400
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]