diff scripts/image/saveimage.m @ 904:3470f1e25a79

[project @ 1994-11-09 21:22:15 by jwe]
author jwe
date Wed, 09 Nov 1994 21:22:15 +0000
parents 0faebdd7df57
children 56520a75b5b3
line wrap: on
line diff
--- a/scripts/image/saveimage.m	Wed Nov 09 20:02:47 1994 +0000
+++ b/scripts/image/saveimage.m	Wed Nov 09 21:22:15 1994 +0000
@@ -1,29 +1,30 @@
 function saveimage(filename,X,img_form,map)
-#Save a matrix to disk in image format.
-#
-#saveimage(filename,x) saves matrix x to file filename in octave's image
-#format.  The current colormap is saved in the file also.
-#
-#saveimage(filename,x,"img") saves the image in the default format and
-#is the same as saveimage(filename,x).
-#
-#saveimage(filename,x,"ppm") saves the image in ppm format instead of
-#the default octave image format.
-#
-#saveimage(filename,x,"ps") saves the image in PostScript format instead
-#of the default octave image format. (Note: images saved in PostScript format
-#can not be read back into octave with loadimage.)
-#
-#saveimage(filename,x,format,map) saves the image along with the specified
-#colormap in the specified format.
-#
-#Note: If the colormap contains only two entries and these entries are black
-#and white, the bitmap ppm and PostScript formats are used.  If the image is
-#a gray scale image (the entries within each row of the colormap are equal)
-#the gray scale ppm and PostScript image formats are used, otherwise the full
-#color formats are used.
-#
-#SEE ALSO: loadimage, save, load, colormap
+
+# Save a matrix to disk in image format.
+# 
+# saveimage(filename,x) saves matrix x to file filename in octave's image
+# format.  The current colormap is saved in the file also.
+# 
+# saveimage(filename,x,"img") saves the image in the default format and
+# is the same as saveimage(filename,x).
+# 
+# saveimage(filename,x,"ppm") saves the image in ppm format instead of
+# the default octave image format.
+# 
+# saveimage(filename,x,"ps") saves the image in PostScript format instead
+# of the default octave image format. (Note: images saved in PostScript format
+# can not be read back into octave with loadimage.)
+# 
+# saveimage(filename,x,format,map) saves the image along with the specified
+# colormap in the specified format.
+# 
+# Note: If the colormap contains only two entries and these entries are black
+# and white, the bitmap ppm and PostScript formats are used.  If the image is
+# a gray scale image (the entries within each row of the colormap are equal)
+# the gray scale ppm and PostScript image formats are used, otherwise the full
+# color formats are used.
+# 
+# SEE ALSO: loadimage, save, load, colormap
 
   if(nargin < 2)
     error("usage: saveimage(filename,matrix,[format, [colormap]])");