From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mathias Dahl Newsgroups: gmane.emacs.help Subject: Calculate window size in pixels Date: Fri, 06 May 2005 11:12:10 +0200 Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1115378709 24131 80.91.229.2 (6 May 2005 11:25:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 6 May 2005 11:25:09 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri May 06 13:25:08 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DU0wS-0005NN-UM for geh-help-gnu-emacs@m.gmane.org; Fri, 06 May 2005 13:24:25 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DU13H-0005cG-73 for geh-help-gnu-emacs@m.gmane.org; Fri, 06 May 2005 07:31:27 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 14 Original-X-Trace: individual.net SMH/y59hPNGe2ZhagoadYwP3qrW9FiS9xPZsMU8COshVAZZ9+O User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (windows-nt) Cancel-Lock: sha1:BtTgymUU5ANgRXs6oZWdbS5IwDM= Original-Xref: shelby.stanford.edu gnu.emacs.help:130714 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:26366 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:26366 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