emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: :max-width/:max-height


From: Lars Magne Ingebrigtsen
Subject: Re: :max-width/:max-height
Date: Fri, 21 Jun 2013 12:29:05 +0200
User-agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux)

Eli Zaretskii <address@hidden> writes:

> Can you show a pseudo-code that would illustrate the idea?

(put-image (create-image "/tmp/foo.png" nil nil
            :max-width (frame-width)
            :max-height (frame-height)))

The tedious bit about the computation is finding out whether to use the
max-width or the max-height when computing the width and height to use.
(We want to keep the aspect ratio.)
            
-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]