TeeDrawBitmapEditor doesn't work outside

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Fang
Newbie
Newbie
Posts: 66
Joined: Wed Oct 13, 2004 4:00 am

TeeDrawBitmapEditor doesn't work outside

Post by Fang » Sun May 14, 2006 3:00 am

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

Fang
Newbie
Newbie
Posts: 66
Joined: Wed Oct 13, 2004 4:00 am

Post by Fang » Sun May 14, 2006 3:11 am

PaintSeriesLegend works though :lol:

Post Reply