<?
    
require_once 'Image/MonoBMP.php';

    
$a = new Image_MonoBMP();
    
$a->createFromFile('MonoBMP_sample.bmp');

    
$a->drawFigletText('(c) BOLK''xbriteb.flf''1:1'IMAGE_XBM_BLACKIMAGE_XBM_WHITE2545);
    
$a->drawLine(20608060IMAGE_XBM_BLACK);

    
$a->drawRectangle(009999IMAGE_XBM_BLACK);

    
header("Content-type: image/bitmap");
    
$a->output();

?>