TTeeBlend

TTeeBlend
Hierarchy     Properties     Methods     

Unit
TeCanvas

Description
The TeeBlend object is used to set transparency for a given screen rectangle.

The usage of TeeBlend is for example as follows:

Var Blend : TTeeBlend ;

R:=Rect( 10,10,50,50 );
Blend := TTeeBlend.Create( Chart1.Canvas, R );
try
...
Chart1.Canvas.Brush.Color:=clRed;
Chart1.Canvas.Brush.Style:=bsSolid;
Chart1.Canvas.Rectangle(R);
...
Blend.DoBlend( 50 ) ; // 50% transparency
finally
Blend.Free;
end;