bitmap - 

The Bitmap class represents a 24-bit bitmap image. An instance can be constructed

by calling load or with_size:

var bm1 = new Bitmap.load(path_to_a_bmp_file)
var bm2 = new Bitmap.with_size(400, 300)

The width and height attributes contain the image's width and height, respectively.

Individual pixels can be manipulated by calling the set_pixel function:

set_pixel(x, y, color)

The no-argument grayscale function converts the bitmap to grayscale and is an implementation of this Rossetacode task:

Finally, the bitmap can be saved to a file by calling save:


For information on the bitmap format, see

A module containing classes for manipulating bitmap images