Page 1 of 1

TeeDrawBitmapEditor doesn't work outside

Posted: Sun May 14, 2006 3:00 am
by 9234539
hi,
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;
Thanks.

Fang

Posted: Sun May 14, 2006 3:11 am
by 9234539
PaintSeriesLegend works though :lol: