from bmp import *

def testImage():
    """ a function to demonstrate how
        to create and save a bitmap image
    """
    width = 200
    height = 200
    image = BitMap( width, height )

    # create a loop in order to draw some pixels
    
    for col in range(width):
    
        for row in range(height):
            if col == row:
                image.plotPoint( col, row )

    # we have now looped through every image pixel
    # next, we write it out to a file

    image.saveFile( "test.bmp" )

