Re: Pixel Size
Re: Pixel Size
- Subject: Re: Pixel Size
- From: "Dmitry Savenok" <email@hidden>
- Date: Thu, 28 Sep 2006 15:37:20 +0300
- Organization: Eltima
try this
width = [[[[_window screen] deviceDescription] objectForKey:NSDeviceSize]
sizeValue].width;
height = [[[[_window screen] deviceDescription] objectForKey:NSDeviceSize]
sizeValue].height;
width, height - screen size in pixels
Is there a way to get the size of a pixel (or dpi) of an NSScreen?
I am NOT interested in [NSScreen deviceDescription] which - obviously
without making any real effort of getting at the truth - just returns an
arbitrary value of 72 dpi for all screens.
So: is there some function somewhere which really tells the truth about
screen resolution?
Gerriet.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
References: | |
| >Pixel Size (From: "Gerriet M. Denkmann" <email@hidden>) |