TTeeCanvas.BeginBlending

TTeeCanvas.BeginBlending
TTeeCanvas

function BeginBlending(Const R: TRect; Transparency: TTeeTransparency): TTeeBlend; virtual;

Unit
TeCanvas

Description
Initiates canvas for blending (transparency) operation.
The R rectangle determines the 2D dimensions of the transparent area and the Transparency parameter is the percentage of semi-glass effect.
The function returns an instance of a TTeeBlend object, that must be passed to EndBlending method.
The EndBlending method automatically frees the temporary blending object.

Example :

var blend : TTeeBlend;
R : TRect;

R:=Rect( 40,40,100,100 );
blend := Chart1.Canvas.BeginBlending( R, 50 ) ; // 50 % transparency
Chart1.Canvas.Brush.Color := clBlue;
Chart1.Canvas.Rectangle( R );
Chart1.Canvas.EndBlending( blend );