ImageEn, unit iegdiplus

TIECanvas.FillRect

TIECanvas.FillRect


Declaration

procedure FillRect(const Rect: TRect);


Description

Fill an area with the current current brush.

GDI+ Method: GdipFillRectangle

Also see: GradientFillRect

Note: The Rect.Right and Rect.Bottom points are excluded from the painting


Example

// Highlight an area of a bitmap
iec := TIECanvas.Create( Bitmap.Canvas, false );
iec.Brush.Color := clRed;
iec.Brush.Style := bsSolid;
iec.Brush.Transparency := 125;
iec.FillRect( Rect( 650, 680, 850, 780 ));
iec.Free();