动态滴加载图片

BCB动态滴加载图片

1.定义:
   Graphics::TBitmap *bmp;
2.创建和导入
  bmp=new Graphics::TBitmap;
   bmp->LoadFromFile("a.bmp");

3.绘制:

     Canvas->StretchDraw(TRect(0,Height-30,Width,Height),bmp);
      Canvas->StretchDraw(TRect(0,0,Width,20),bmp);
      Canvas->StretchDraw(TRect(0,20,5,Height-30),bmp);
      Canvas->StretchDraw(TRect(Width-5,20,Width,Height-30),bmp);

你可能感兴趣的:(动态滴加载图片)