Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Copying a TChart's canvas to a separate TCanvas

Status
Not open for further replies.

Stretchwickster

Programmer
Apr 30, 2001
1,746
GB
What is the best way to go about copying a tchart's canvas to another canvas? I've tried lots of different ways but all have been unsuccessful in copying the chart canvas (after it has been populated with series data).
Clive [infinity]
 
I think the way to do that is:


Canvas1.Height:=DBCanvas1.Heigth;
Canvas1.Width:=DBCanvas1.Width;
for i:=0 to DBCanvas1.Width do
for j:=0 to DBCanvas1.Height do
Canvas1.Pixels[i,j]:=DBCanvas1.Pixels[i,j];

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top