Mercurial > emacs
comparison lispref/display.texi @ 76828:adfa1b509013
Postscript -> PostScript.
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Sat, 31 Mar 2007 10:57:01 +0000 |
parents | fec7d780a786 |
children | 8c3661f15764 |
comparison
equal
deleted
inserted
replaced
76827:aa7f7988d3bb | 76828:adfa1b509013 |
---|---|
3601 can be used to modify the set of known names for these dynamic | 3601 can be used to modify the set of known names for these dynamic |
3602 libraries (though it is not possible to add new image formats). | 3602 libraries (though it is not possible to add new image formats). |
3603 | 3603 |
3604 The supported image formats include XBM, XPM (this requires the | 3604 The supported image formats include XBM, XPM (this requires the |
3605 libraries @code{libXpm} version 3.4k and @code{libz}), GIF (requiring | 3605 libraries @code{libXpm} version 3.4k and @code{libz}), GIF (requiring |
3606 @code{libungif} 4.1.0), Postscript, PBM, JPEG (requiring the | 3606 @code{libungif} 4.1.0), PostScript, PBM, JPEG (requiring the |
3607 @code{libjpeg} library version v6a), TIFF (requiring @code{libtiff} | 3607 @code{libjpeg} library version v6a), TIFF (requiring @code{libtiff} |
3608 v3.4), and PNG (requiring @code{libpng} 1.0.2). | 3608 v3.4), and PNG (requiring @code{libpng} 1.0.2). |
3609 | 3609 |
3610 You specify one of these formats with an image type symbol. The image | 3610 You specify one of these formats with an image type symbol. The image |
3611 type symbols are @code{xbm}, @code{xpm}, @code{gif}, @code{postscript}, | 3611 type symbols are @code{xbm}, @code{xpm}, @code{gif}, @code{postscript}, |
3656 @menu | 3656 @menu |
3657 * Image Descriptors:: How to specify an image for use in @code{:display}. | 3657 * Image Descriptors:: How to specify an image for use in @code{:display}. |
3658 * XBM Images:: Special features for XBM format. | 3658 * XBM Images:: Special features for XBM format. |
3659 * XPM Images:: Special features for XPM format. | 3659 * XPM Images:: Special features for XPM format. |
3660 * GIF Images:: Special features for GIF format. | 3660 * GIF Images:: Special features for GIF format. |
3661 * Postscript Images:: Special features for Postscript format. | 3661 * PostScript Images:: Special features for PostScript format. |
3662 * Other Image Types:: Various other formats are supported. | 3662 * Other Image Types:: Various other formats are supported. |
3663 * Defining Images:: Convenient ways to define an image for later use. | 3663 * Defining Images:: Convenient ways to define an image for later use. |
3664 * Showing Images:: Convenient ways to display an image once it is defined. | 3664 * Showing Images:: Convenient ways to display an image once it is defined. |
3665 * Image Cache:: Internal mechanisms of image display. | 3665 * Image Cache:: Internal mechanisms of image display. |
3666 @end menu | 3666 @end menu |
3978 (unless first-time (delete-char 1)) | 3978 (unless first-time (delete-char 1)) |
3979 (insert-image img)) | 3979 (insert-image img)) |
3980 (run-with-timer 0.1 nil 'display-anim buffer file (1+ idx) max nil))) | 3980 (run-with-timer 0.1 nil 'display-anim buffer file (1+ idx) max nil))) |
3981 @end ignore | 3981 @end ignore |
3982 | 3982 |
3983 @node Postscript Images | 3983 @node PostScript Images |
3984 @subsection Postscript Images | 3984 @subsection PostScript Images |
3985 @cindex Postscript images | 3985 @cindex postscript images |
3986 | 3986 |
3987 To use Postscript for an image, specify image type @code{postscript}. | 3987 To use PostScript for an image, specify image type @code{postscript}. |
3988 This works only if you have Ghostscript installed. You must always use | 3988 This works only if you have Ghostscript installed. You must always use |
3989 these three properties: | 3989 these three properties: |
3990 | 3990 |
3991 @table @code | 3991 @table @code |
3992 @item :pt-width @var{width} | 3992 @item :pt-width @var{width} |
3997 The value, @var{height}, specifies the height of the image in points | 3997 The value, @var{height}, specifies the height of the image in points |
3998 (1/72 inch). @var{height} must be an integer. | 3998 (1/72 inch). @var{height} must be an integer. |
3999 | 3999 |
4000 @item :bounding-box @var{box} | 4000 @item :bounding-box @var{box} |
4001 The value, @var{box}, must be a list or vector of four integers, which | 4001 The value, @var{box}, must be a list or vector of four integers, which |
4002 specifying the bounding box of the Postscript image, analogous to the | 4002 specifying the bounding box of the PostScript image, analogous to the |
4003 @samp{BoundingBox} comment found in Postscript files. | 4003 @samp{BoundingBox} comment found in PostScript files. |
4004 | 4004 |
4005 @example | 4005 @example |
4006 %%BoundingBox: 22 171 567 738 | 4006 %%BoundingBox: 22 171 567 738 |
4007 @end example | 4007 @end example |
4008 @end table | 4008 @end table |
4009 | 4009 |
4010 Displaying Postscript images from Lisp data is not currently | 4010 Displaying PostScript images from Lisp data is not currently |
4011 implemented, but it may be implemented by the time you read this. | 4011 implemented, but it may be implemented by the time you read this. |
4012 See the @file{etc/NEWS} file to make sure. | 4012 See the @file{etc/NEWS} file to make sure. |
4013 | 4013 |
4014 @node Other Image Types | 4014 @node Other Image Types |
4015 @subsection Other Image Types | 4015 @subsection Other Image Types |