Chart1.Canvas.ShowImage what arguments
Posted: Thu Mar 26, 2009 1:39 pm
Hello !
I want to make a copy of the current chart bitmap.
Following help text I found:
TCanvas3D.ShowImage
procedure ShowImage(DestCanvas, DefaultCanvas: TCanvas; Const UserRect: TRect); virtual; abstract;
Makes copy of Canvas to other location.
procedure TForm1.Chart1AfterDraw(Sender: TObject);
begin
{Rect Right and Bottom overriden for Chart Width and Height. Copied Chart placed at Left 5,Top 5}
Chart1.Canvas.ShowImage(TCanvas(Form1.Canvas),TCanvas(Chart1.Canvas),Rect(5,5,0,0));
My Questions:
1. It is not clear what is the default canvas - image if chart has no image, yet?
2. How code in C++ TCanvas(Chart1->Canvas)
This code does not work (in C++) because Chart1->Canvas
is a TCanvas3D and not a TCanvas
Bye Andreas
I want to make a copy of the current chart bitmap.
Following help text I found:
TCanvas3D.ShowImage
procedure ShowImage(DestCanvas, DefaultCanvas: TCanvas; Const UserRect: TRect); virtual; abstract;
Makes copy of Canvas to other location.
procedure TForm1.Chart1AfterDraw(Sender: TObject);
begin
{Rect Right and Bottom overriden for Chart Width and Height. Copied Chart placed at Left 5,Top 5}
Chart1.Canvas.ShowImage(TCanvas(Form1.Canvas),TCanvas(Chart1.Canvas),Rect(5,5,0,0));
My Questions:
1. It is not clear what is the default canvas - image if chart has no image, yet?
2. How code in C++ TCanvas(Chart1->Canvas)
This code does not work (in C++) because Chart1->Canvas
is a TCanvas3D and not a TCanvas
Bye Andreas