help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Elisp and overlay, how to show an image


From: Michael Heerdegen
Subject: Re: Elisp and overlay, how to show an image
Date: Mon, 08 Jul 2024 02:20:09 +0200
User-agent: Gnus/5.13 (Gnus v5.13)

Sébastien Gendre <seb@k-7.ch> writes:

> Is there a way to set a bottom margin to the added overlay, or to the
> image, like with CSS on a web page ? Or do I need to add more "\n" with
> (overlay-put) ?
>
> I need to found a way to modify the way the image is shown. Controlling
> the zoom, on which part it's centered and how the image is cut. I will
> read more carefully the section "41.17 Images" of the elisp manual.
> Until now, I was started by the overlays section of the manual. 

Have a look at (info "(elisp) Image Descriptors") - in particular,
:scale, :ascent, :margin.  AFAIU you are allowed to manipulate the data
structure of an already created image "object".  But note that not every
image type supports or implements all descriptors.


Michael.




reply via email to

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