Contents  All Classes  Index A-Z  All Units


TCanvas3D.RectFromRectZ
TCanvas3D

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

Unit
TeCanvas

Description
Returns the smallest bounding rectangle containing the four corners of the "R" rectangle after calculating their 3D position.

This function does:

function TCanvas3D.RectFromRectZ(const R: TRect; Z: Integer): TRect;
var P : TFourPoints;
begin
P:=FourPointsFromRect(R,Z);
result:=RectFromPolygon(P,4);
end;

It is mainly used to apply transparency to 3D rotated rectangles.



Submit your feedback about this page.

Copyright 1995-2007 © by Steema Software. All Rights Reserved.