printer_draw_rectangle
    (PECL)
printer_draw_rectangle -- 矩形を描画する
説明
void 
printer_draw_rectangle ( resource handle, int ul_x, int ul_y, int lr_x, int lr_y )
     この関数は矩形を描画します。
    
     handle は、プリンタの有効なハンドルである
     必要があります。
    
     ul_x は、矩形の左上の x 座標です。
    
     ul_y は、矩形の左上の y 座標です。
    
     lr_x は、矩形の右下の x 座標です。
    
     lr_y は、矩形の右下の y 座標です。
    
例 1. 
      printer_draw_rectangle() の例
      
<?php $handle = printer_open(); printer_start_doc($handle, "My Document"); printer_start_page($handle);
  $pen = printer_create_pen(PRINTER_PEN_SOLID, 2, "000000"); printer_select_pen($handle, $pen);
  $brush = printer_create_brush(PRINTER_BRUSH_SOLID, "2222FF"); printer_select_brush($handle, $brush);
  printer_draw_rectangle($handle, 1, 1, 500, 500);
  printer_delete_brush($brush); printer_delete_pen($pen);
  printer_end_page($handle); printer_end_doc($handle); printer_close($handle); ?>
 |  
  |