164______________________________________________ 3

 ,        -
   ,   Canvas.

 Image  PaintBox    
 ,  ,     -
  ,   .   -
     5.     -
   Canvas.

 DrawGrid      , -
    ,    .  -
   StringGrid (.  3.2.6),   -
   DrawGrid.   DrawGrid   ,
,   StringGrid,    , .. 
 Cells, Cols, Rows, Objects.       
,    ,      -
 .

 DrawGrid   Canvas,     -
 ,    5.   CelLRect,  -
  ,    .   


Windows::TRect _fastcall CellRect(int ACol, int ARow);

 ACol  ARow     ,   0,  
  .      -
 ,      . ,


DrawGridl->Canvas->CopyRect(DrawGridl->CeilRect(1,1), BitMap->Canvas,
Rect(0,0,BitMap->Height,BitMap->Width));

   (1,1)    BitMap  Graphics::TBit-

map*.          ,  -
   0.

    Shape.     -
       , 
     , 
 .      Shape (),
   :

stRectangle            stSquare       

stRoundRect   - stRoundSquare   -
                         

stEllipse                         stCircle         

     . 3.13.

     Brush ().   -
   TBrush,   ,  : 
(Brush->Color)   (Brush->Style)  .   
 Style     . 3.13.    
 Shape  Pen (),   .  ,  
 Brush,     5.

   Chart.     -
   ,     (. 3.14). -
 Chart   , , ,      -