david0204 Posted February 22, 2017 Share Posted February 22, 2017 Hi Everyone, I use C++ Builder 10.1. I want to fill out Black.It doesn't work.Following are my codes. void __fastcall TUniLoginForm1::UniButton3Click(TObject *Sender) { UniImage1->Picture->Bitmap->Canvas->Brush->Color =clBlack; UniImage1->Picture->Bitmap->Canvas->FillRect(UniImage1->ClientRect); } Does anyone know how to fix it? Thanks. Quote Link to comment Share on other sites More sharing options...
Tokay Posted August 27, 2018 Share Posted August 27, 2018 I'm try in the current version (1.50): UniCanvas1.Picture.Bitmap.Canvas.Brush.Color := clBtnFace; UniCanvas1.Picture.Bitmap.Canvas.FillRect(UniCanvas1.Picture.Bitmap.Canvas.ClipRect); Works fine here. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.