what's wrong with the following code? I try to draw the series icon on the imagelist using TeeDrawBitmapEditor, but just got a white blank rectangle. What shall I set before calling this function?
Code: Select all
Graphics::TBitmap *BImage = new Graphics::TBitmap;
BImage->SetSize(16,16);
Graphics::TCanvas* ACanvas=BImage->Canvas;
// ACanvas->Brush->Color=clBlack;
// ACanvas->FillRect(Rect(0,0,16,16));
// ACanvas->Pen->Color=clBlack;
TeeDrawBitmapEditor(ACanvas,Series1,0,0);
ImageList1->InsertMasked(0,BImage,clWhite);
ImageList1->Delete(1);
delete BImage;
Fang