procedure writebmp

Write a bitmap (.bmp) file. If only red is given, this will be a grayscale image, else both green and blue must be given (which must be of the same size as red) and a color image will be written. The values in the fits are supposed to be scaled between 0 and 255.

Syntax
writebmp filename, red [, green, blue]

Arguments
filename:   A string giving the file name of the bitmap
red:   2-dimensional array
green:   A 2-dimensional array of the same size as red
blue:   A 2-dimensional array of the same size as red


Examples
Write out a grayscale bitmap of a circular gaussian:
   writebmp "gauss.bmp", gauss(129,129,30)*255