From: Eli Zaretskii <eliz@gnu.org>
To: Lars Magne Ingebrigtsen <larsi@gnus.org>
Cc: emacs-devel@gnu.org
Subject: Re: :max-width/:max-height
Date: Fri, 21 Jun 2013 13:47:07 +0300 [thread overview]
Message-ID: <83vc57n3kk.fsf@gnu.org> (raw)
In-Reply-To: <m37ghnu58u.fsf@stories.gnus.org>
> From: Lars Magne Ingebrigtsen <larsi@gnus.org>
> Cc: emacs-devel@gnu.org
> Date: Fri, 21 Jun 2013 12:29:05 +0200
>
> Eli Zaretskii <eliz@gnu.org> 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.)
So it's about hiding these computations behind an API, rather than
doing them on the application level, is that right?
next prev parent reply other threads:[~2013-06-21 10:47 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-21 7:40 :max-width/:max-height Lars Magne Ingebrigtsen
2013-06-21 9:55 ` :max-width/:max-height Eli Zaretskii
2013-06-21 10:08 ` :max-width/:max-height Lars Magne Ingebrigtsen
2013-06-21 10:21 ` :max-width/:max-height Eli Zaretskii
2013-06-21 10:29 ` :max-width/:max-height Lars Magne Ingebrigtsen
2013-06-21 10:47 ` Eli Zaretskii [this message]
2013-06-23 19:26 ` :max-width/:max-height Lars Magne Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83vc57n3kk.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=larsi@gnus.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.