[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Calculate window size in pixels
From: |
Mathias Dahl |
Subject: |
Calculate window size in pixels |
Date: |
Fri, 06 May 2005 11:12:10 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (windows-nt) |
Is it possible to calculate an Emacs window's size in pixels?
`window-height' and `window-width' returns lines and columns.
I guess this have to do with the frame's default font or
something. Having two functions, `window-height-pixels' and
`window-width-pixels' would be nice :)
Can it be done?
The reason that I want this is to be able to figure out to what size I
have to resize an image to before inserting it into a window, so that
it fits snugly.
/Mathias
- Calculate window size in pixels,
Mathias Dahl <=