aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Moellmann2000-09-15 11:49:22 +0000
committerGerd Moellmann2000-09-15 11:49:22 +0000
commit47e351a3277eaad736633c2856fbdf43fec76a97 (patch)
treef55124fbb1771c80403c56c608594572ec21f313
parentd1d3c685624741d172dc5ff681b85ee495d62712 (diff)
downloademacs-47e351a3277eaad736633c2856fbdf43fec76a97.tar.gz
emacs-47e351a3277eaad736633c2856fbdf43fec76a97.zip
*** empty log message ***
-rw-r--r--etc/NEWS63
-rw-r--r--lisp/ChangeLog7
-rw-r--r--src/ChangeLog18
3 files changed, 76 insertions, 12 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 4d6a3c1d7c4..f41d227c323 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -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
1585with 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
1585backslash. 1588backslash.
1586 1589
@@ -2998,20 +3001,56 @@ around an image.
2998 3001
2999`:algorithm ALGO' 3002`:algorithm ALGO'
3000 3003
3001Apply an image algorithm to the image before displaying it. ALGO must 3004Apply an image algorithm to the image before displaying it.
3002be a symbol specifying the algorithm. Currently only `laplace' is 3005
3003supported which applies a Laplace edge detection algorithm to an image 3006ALGO `laplace' or `emboss' means apply a Laplace or ``emboss''
3004which is intended to display images "disabled." 3007edge-detection algorithm to the image.
3008
3009ALGO `(edge-detection :matrix MATRIX :color-adjust ADJUST)' means
3010apply a general edge-detection algorithm. MATRIX must be either a
3011nine-element list or a nine-element vector of numbers. A pixel at
3012position x/y in the transformed image is computed from original pixels
3013around that position. MATRIX specifies, for each pixel in the
3014neighborhood of x/y, a factor with which that pixel will influence the
3015transformed pixel; element 0 specifies the factor for the pixel at
3016x-1/y-1, element 1 the factor for the pixel at x/y-1 etc. as shown
3017below.
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
3023The resulting pixel is computed from the color intensity of the color
3024resulting from summing up the RGB values of surrounding pixels,
3025multiplied by the specified factors, and dividing that sum by the sum
3026of the factors' absolute values.
3027
3028Laplace 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
3034Emboss edge-detection uses a matrix of
3035
3036 ( 2 -1 0
3037 -1 0 1
3038 0 1 -2)
3039
3040`:mask MASK'
3041
3042If MASK is `heuristic' or `(heuristic BG)', build a clipping mask for
3043the image, so that the background of a frame is visible behind the
3044image. If BG is not specified, or if BG is t, determine the
3045background color of the image by looking at the 4 corners of the
3046image, assuming the most frequently occuring color from the corners is
3047the background color of the image. Otherwise, BG must be a list `(RED
3048GREEN BLUE)' specifying the color to assume for the background of the
3049image.
3007 3050
3008If BG is not nil, build a clipping mask for the image, so that the 3051If MASK is nil, remove a mask from the image, if it has one. Images
3009background of a frame is visible behind the image. If BG is t, 3052in some formats include a mask which can be removed by specifying
3010determine the background color of the image by looking at the 4 3053`:mask nil'.
3011corners of the image, assuming the most frequently occuring color from
3012the corners is the background color of the image. Otherwise, BG must
3013be a list `(RED GREEN BLUE)' specifying the color to assume for the
3014background 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 @@
12000-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
12000-09-14 Andrew Innes <andrewi@gnu.org> 82000-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 @@
12000-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
12000-09-14 Andrew Innes <andrewi@gnu.org> 192000-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.