TeCanvas.TCanvas3D.CalcRect3D
 
 
 


TCanvas3D.CalcRect3D
TCanvas3D

function CalcRect3D(Const R: TRect; Z: Integer): TRect;

Unit
TeCanvas

Description
Adjusts a Chart front plane rectangle to Z displacement offset on an Orthogonally displayed Chart.

Example

The following code draws a rectangle on the back Chart wall whatever the Chart3DPercent.

procedure TForm1.Chart1AfterDraw(Sender: TObject);
var tmp:TRect;
begin
With Chart1.Canvas do
begin
tmp:=CalcRect3D(Chart1.ChartRect,Chart1.Width3D);
Rectangle(tmp.Left,tmp.Top,tmp.Right,tmp.Bottom);
end;
end;



Send us Help Feedback. Copyright 1995-2024 © by Steema Software. All Rights Reserved.