Width: Integer;
The Width property determines the width of the integer rectangle.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
Obj: ITabObject;
Rect: IGxRect;
Begin
Rect:=New GxRect.Create(0,0,10,13);
Obj:=UiTabSheet1.TabSheet.Objects.Add("PrxPicture", Rect.ToRectF);
(Obj As IPrxPicture).Image:=GxImage.FromFile("c:\1.bmp");
Rect.Width:=52;
Rect.Height:=52;
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 at the top left angle, the width and the height of the image are stretched to 52.
See also: