[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: :max-width/:max-height
From: |
Eli Zaretskii |
Subject: |
Re: :max-width/:max-height |
Date: |
Fri, 21 Jun 2013 13:21:37 +0300 |
> From: Lars Magne Ingebrigtsen <address@hidden>
> Cc: address@hidden
> Date: Fri, 21 Jun 2013 12:08:40 +0200
>
> Eli Zaretskii <address@hidden> writes:
>
> >> It was probably lost in that long bickering thread about whether
> >> lookup_image pushed stuff over X or not, but I realised that the
> >> interface shr needs is :max-width and :max-height on images.
> >
> > What would such an interface provide to its callers?
>
> I'm not sure I understand the question. It would allow scaling the
> images to fit in a window without having to do the tedious computations
> in the caller, and it would require decoding the image only once.
Can you show a pseudo-code that would illustrate the idea?