 , , , , ________________________991

Dormant____________________________________________

     ,   -
    

 TBitmap



void   fastcall Dormant(void) ;



  Dormant   GDI,   -
.      ,   
.     Handle     -
 HBITMAP.

      Freelmage,
 ,   .    -
     .



void _fastcall TFormI::ButtonlClick(TObject *Sender)

(
Graphics::TBitmap *BitMapl = new Graphics::TBitmap();

Graphics::TBitmap *BitMap2 = new Graphics::TBitmap();

try

(

//      BitMapl

BitMapl->LoadFromFile("...");

//   BitMap2  BitMapl

BitMap2->Assign(BitMapl) ;

//   GDI

BitMap2->Dormant() ;

//  ,   

BitMap2->FreeImage() ;

//   BitMap2   

Canvas->Draw(20,20,BitMap2) ;

//    BitMap2

BitMap2->Monochrome = true;

//   

Canvas->Draw(250,20,BitMap2) ;

//    

BitMap2->ReleaseHandle() ;

)

catch (...)

f

MessageBeep(0) ;

t

delete BitMapl;

delete BitMap2;

Draw

      
 TCanvas



void   fastcall Draw(int X, int Y, TGraphic* Graphic);