diff options
| author | Gerd Moellmann | 2000-09-15 11:49:22 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2000-09-15 11:49:22 +0000 |
| commit | 47e351a3277eaad736633c2856fbdf43fec76a97 (patch) | |
| tree | f55124fbb1771c80403c56c608594572ec21f313 | |
| parent | d1d3c685624741d172dc5ff681b85ee495d62712 (diff) | |
| download | emacs-47e351a3277eaad736633c2856fbdf43fec76a97.tar.gz emacs-47e351a3277eaad736633c2856fbdf43fec76a97.zip | |
*** empty log message ***
| -rw-r--r-- | etc/NEWS | 63 | ||||
| -rw-r--r-- | lisp/ChangeLog | 7 | ||||
| -rw-r--r-- | src/ChangeLog | 18 |
3 files changed, 76 insertions, 12 deletions
| @@ -1581,6 +1581,9 @@ functionality with aliases for the mldrag functions. | |||
| 1581 | * Lisp changes made after edition 2.6 of the Emacs Lisp Manual, | 1581 | * Lisp changes made after edition 2.6 of the Emacs Lisp Manual, |
| 1582 | (Display-related features are described in a page of their own below.) | 1582 | (Display-related features are described in a page of their own below.) |
| 1583 | 1583 | ||
| 1584 | ** In image specifications, `:heuristic-mask' has been replaced | ||
| 1585 | with the more general `:mask' property. | ||
| 1586 | |||
| 1584 | ** A `?' can be used in a symbol name without escaping it with a | 1587 | ** A `?' can be used in a symbol name without escaping it with a |
| 1585 | backslash. | 1588 | backslash. |
| 1586 | 1589 | ||
| @@ -2998,20 +3001,56 @@ around an image. | |||
| 2998 | 3001 | ||
| 2999 | `:algorithm ALGO' | 3002 | `:algorithm ALGO' |
| 3000 | 3003 | ||
| 3001 | Apply an image algorithm to the image before displaying it. ALGO must | 3004 | Apply an image algorithm to the image before displaying it. |
| 3002 | be a symbol specifying the algorithm. Currently only `laplace' is | 3005 | |
| 3003 | supported which applies a Laplace edge detection algorithm to an image | 3006 | ALGO `laplace' or `emboss' means apply a Laplace or ``emboss'' |
| 3004 | which is intended to display images "disabled." | 3007 | edge-detection algorithm to the image. |
| 3008 | |||
| 3009 | ALGO `(edge-detection :matrix MATRIX :color-adjust ADJUST)' means | ||
| 3010 | apply a general edge-detection algorithm. MATRIX must be either a | ||
| 3011 | nine-element list or a nine-element vector of numbers. A pixel at | ||
| 3012 | position x/y in the transformed image is computed from original pixels | ||
| 3013 | around that position. MATRIX specifies, for each pixel in the | ||
| 3014 | neighborhood of x/y, a factor with which that pixel will influence the | ||
| 3015 | transformed pixel; element 0 specifies the factor for the pixel at | ||
| 3016 | x-1/y-1, element 1 the factor for the pixel at x/y-1 etc. as shown | ||
| 3017 | below. | ||
| 3018 | |||
| 3019 | (x-1/y-1 x/y-1 x+1/y-1 | ||
| 3020 | x-1/y x/y x+1/y | ||
| 3021 | x-1/y+1 x/y+1 x+1/y+1) | ||
| 3022 | |||
| 3023 | The resulting pixel is computed from the color intensity of the color | ||
| 3024 | resulting from summing up the RGB values of surrounding pixels, | ||
| 3025 | multiplied by the specified factors, and dividing that sum by the sum | ||
| 3026 | of the factors' absolute values. | ||
| 3027 | |||
| 3028 | Laplace edge-detection currently uses a matrix of | ||
| 3005 | 3029 | ||
| 3006 | `:heuristic-mask BG' | 3030 | (1 0 0 |
| 3031 | 0 0 0 | ||
| 3032 | 9 9 -1) | ||
| 3033 | |||
| 3034 | Emboss edge-detection uses a matrix of | ||
| 3035 | |||
| 3036 | ( 2 -1 0 | ||
| 3037 | -1 0 1 | ||
| 3038 | 0 1 -2) | ||
| 3039 | |||
| 3040 | `:mask MASK' | ||
| 3041 | |||
| 3042 | If MASK is `heuristic' or `(heuristic BG)', build a clipping mask for | ||
| 3043 | the image, so that the background of a frame is visible behind the | ||
| 3044 | image. If BG is not specified, or if BG is t, determine the | ||
| 3045 | background color of the image by looking at the 4 corners of the | ||
| 3046 | image, assuming the most frequently occuring color from the corners is | ||
| 3047 | the background color of the image. Otherwise, BG must be a list `(RED | ||
| 3048 | GREEN BLUE)' specifying the color to assume for the background of the | ||
| 3049 | image. | ||
| 3007 | 3050 | ||
| 3008 | If BG is not nil, build a clipping mask for the image, so that the | 3051 | If MASK is nil, remove a mask from the image, if it has one. Images |
| 3009 | background of a frame is visible behind the image. If BG is t, | 3052 | in some formats include a mask which can be removed by specifying |
| 3010 | determine the background color of the image by looking at the 4 | 3053 | `:mask nil'. |
| 3011 | corners of the image, assuming the most frequently occuring color from | ||
| 3012 | the corners is the background color of the image. Otherwise, BG must | ||
| 3013 | be a list `(RED GREEN BLUE)' specifying the color to assume for the | ||
| 3014 | background of the image. | ||
| 3015 | 3054 | ||
| 3016 | `:file FILE' | 3055 | `:file FILE' |
| 3017 | 3056 | ||
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index c86dc955595..6f05d56c6cd 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2000-09-15 Gerd Moellmann <gerd@gnu.org> | ||
| 2 | |||
| 3 | * image.el (create-image): Doc fix. | ||
| 4 | |||
| 5 | * toolbar/toolbar.el (toolbar-add-item): Use `:mask heuristic' | ||
| 6 | instead of `:heuristic-mask t'. | ||
| 7 | |||
| 1 | 2000-09-14 Andrew Innes <andrewi@gnu.org> | 8 | 2000-09-14 Andrew Innes <andrewi@gnu.org> |
| 2 | 9 | ||
| 3 | * makefile.w32-in: Revert to Unix line endings. | 10 | * makefile.w32-in: Revert to Unix line endings. |
diff --git a/src/ChangeLog b/src/ChangeLog index 9fe597760db..15f88c91a58 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,21 @@ | |||
| 1 | 2000-09-15 Gerd Moellmann <gerd@gnu.org> | ||
| 2 | |||
| 3 | * xfns.c (QCmatrix, QCcolor_adjustment, QCmask, Qemboss) | ||
| 4 | (Qedge_detection, Qheuristic): New symbols. | ||
| 5 | (syms_of_xfns): Initialize new symbols. | ||
| 6 | (lookup_image): Handle `:mask X', `:algorithm emboss', and | ||
| 7 | `algorithm (edge-detection ...)'. | ||
| 8 | (xbm_format, xpm_format, pbm_format, png_format, jpeg_format): | ||
| 9 | (tiff_format, gif_format, gs_format): Add `:mask'. | ||
| 10 | (XBM_MASK, XPM_MASK, PBM_MASK, PNG_MASK, JPEG_MASK, TIFF_MASK) | ||
| 11 | (GIF_MASK, GS_MASK): New enumerators. | ||
| 12 | (x_laplace_read_row, x_laplace_write_row): Functions removed. | ||
| 13 | (emboss_matrix, laplace_matrix): New variables. | ||
| 14 | (x_to_xcolors, x_from_xcolors, x_detect_edges, x_emboss) | ||
| 15 | (x_edge_detection): New functions. | ||
| 16 | (x_laplace): Rewritten in terms of x_detect_edges. | ||
| 17 | (x_build_heuristic_mask): If image has a mask, free it. | ||
| 18 | |||
| 1 | 2000-09-14 Andrew Innes <andrewi@gnu.org> | 19 | 2000-09-14 Andrew Innes <andrewi@gnu.org> |
| 2 | 20 | ||
| 3 | * makefile.w32-in: Revert to Unix line endings. | 21 | * makefile.w32-in: Revert to Unix line endings. |