unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Calculate window size in pixels
@ 2005-05-06  9:12 Mathias Dahl
  2005-05-06 10:40 ` Pascal Bourguignon
  2005-05-06 14:12 ` Stefan Monnier
  0 siblings, 2 replies; 12+ messages in thread
From: Mathias Dahl @ 2005-05-06  9:12 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2005-05-11  6:36 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-06  9:12 Calculate window size in pixels Mathias Dahl
2005-05-06 10:40 ` Pascal Bourguignon
2005-05-06 14:12 ` Stefan Monnier
2005-05-06 14:40   ` Klaus Straubinger
2005-05-06 15:36   ` Mathias Dahl
2005-05-06 15:40     ` Mathias Dahl
2005-05-06 17:12       ` Mathias Dahl
2005-05-06 17:55       ` Kevin Rodgers
     [not found]       ` <mailman.3776.1115402969.2819.help-gnu-emacs@gnu.org>
2005-05-07 17:51         ` Mathias Dahl
2005-05-09 11:02       ` Ehud Karni
     [not found]       ` <mailman.4226.1115637000.2819.help-gnu-emacs@gnu.org>
2005-05-10 10:28         ` Mathias Dahl
2005-05-11  6:36           ` Mathias Dahl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).