IGxRect.Inflate

Syntax

Inflate(DX: Integer, DY: Integer);

Parameters

DX. Offset by width.

DY. Offset by height.

Description

The Inflate increases the size of the integer rectangle on DX by width and on DY by height.

Example

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);

Var

Obj: ITabObject;

Rect: IGxRect;

Begin

Rect:=New GxRect.Create(0,0,Math.RandBetweenI(0,60),Math.RandBetweenI(0,60));

Obj:=UiTabSheet1.TabSheet.Objects.Add("PrxPicture", Rect.ToRectF);

(Obj As IPrxPicture).Image:=GxImage.FromFile("c:\1.bmp");

Rect.Inflate(10,13);

Obj.Rectangle:=Rect.ToRectF;

End Sub Button1OnClick;

After executing the example clicking the button creates an image in the regular report. The image source is the 1.bmp file. The image is created with the random size and is increased on 10 by width and on 13 by height.

See also:

IGxRect