diff options
| author | Eli Zaretskii | 2025-03-30 19:27:22 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2025-03-30 19:27:22 +0300 |
| commit | 38fec86281efd78af24cc435307d55a00223db49 (patch) | |
| tree | 9fca0ea0731efc239f8903988628b2b026adb956 /doc | |
| parent | 3f05b455f7e52e70871f47810fe42f1f36fa783b (diff) | |
| download | emacs-38fec86281efd78af24cc435307d55a00223db49.tar.gz emacs-38fec86281efd78af24cc435307d55a00223db49.zip | |
; Improve the documentation of 'slice' display spec (bug#77384).
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/lispref/display.texi | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/doc/lispref/display.texi b/doc/lispref/display.texi index 95b17032a74..3426e764e17 100644 --- a/doc/lispref/display.texi +++ b/doc/lispref/display.texi | |||
| @@ -5603,12 +5603,20 @@ instead of the text that has the display specification. | |||
| 5603 | 5603 | ||
| 5604 | @item (slice @var{x} @var{y} @var{width} @var{height}) | 5604 | @item (slice @var{x} @var{y} @var{width} @var{height}) |
| 5605 | This specification together with @code{image} specifies a @dfn{slice} | 5605 | This specification together with @code{image} specifies a @dfn{slice} |
| 5606 | (a partial area) of the image to display. The elements @var{y} and | 5606 | (a partial area) of the image to display. More precisely, the |
| 5607 | @var{x} specify the top left corner of the slice, within the image; | 5607 | specification should have the following form: |
| 5608 | @var{width} and @var{height} specify the width and height of the | 5608 | |
| 5609 | slice. Integers are numbers of pixels. A floating-point number | 5609 | @lisp |
| 5610 | in the range 0.0--1.0 stands for that fraction of the width or height | 5610 | ((slice @var{x} @var{y} @var{width} @var{height}) @var{image-desc}) |
| 5611 | of the entire image. | 5611 | @end lisp |
| 5612 | |||
| 5613 | @noindent | ||
| 5614 | where @var{image-desc} is an image descriptor described above. The | ||
| 5615 | elements @var{x} and @var{y} specify the top left corner of the slice, | ||
| 5616 | within the image; @var{width} and @var{height} specify the width and | ||
| 5617 | height of the slice. Integers are numbers of pixels. A floating-point | ||
| 5618 | number in the range 0.0--1.0 stands for that fraction of the width or | ||
| 5619 | height of the entire image. | ||
| 5612 | 5620 | ||
| 5613 | @item ((margin nil) @var{string}) | 5621 | @item ((margin nil) @var{string}) |
| 5614 | A display specification of this form means to display @var{string} | 5622 | A display specification of this form means to display @var{string} |