934_____________________________________________ 15

  Brush



_property TBitmap* Bitmap



  Bitmap     TBitmap.   -
   8  8 ,    
Brush.

     BitMap,    
 ,      Style.  BitMap -
      , , 
 .

    8  8 ,    
       8  8.

    TBitmap    ,   -
    Bitmap.

      TBitmap    -
,      .



Graphics::TBitmap *MyBitmap = new Graphics::TBitmap;

try
{

MyBitmap->LoadFromFile("MyBitmap.bmp");

Imagel->Canvas->Brush->Bitmap = MyBitmap;

}

finally

T

Imagel->Canvas->Brush->Bitmap = NULL;

delete MyBitmap;

}

     MyBitmap  TBitmap    -
       MyBitmap.bmp.   Ima-
gel->Canvas->Brush->Bitmap     .  -
          Ima-
gel.     BitMap   NULL,   -
     Style.   MyBitmap
,     .

BoundsRect________________________________________

 ,  ,   -
  

 TControl



struct TRect
{

int Left;

int Top;

int Right;