c++builder 画图 填充

void __fastcall TForm2::Button1Click(TObject *Sender)
{
    Canvas->Brush->Color = clBlue;
    Canvas->Brush->Style = bsDiagCross;//bsSolid
    Canvas->FloodFill(ClientWidth / 2, ClientHeight / 2, clBlack, fsBorder);
}

 

posted on 2015-07-12 22:50  lypzxy  阅读(553)  评论(0编辑  收藏  举报