IGxRect.ToRectF

Syntax

ToRectF: IGxRectF;

Description

The ToRectF method transforms the integer rectangle into the real rectangle.

Example

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

Var

Obj: ITabObject;

Rect: IGxRect;

Begin

Rect:=New GxRect.Create(0,0,10,10);

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

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

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 rectangle that bounds the image is transformed into the real one.

See also:

IGxRect