WrapMode: GxWrapMode;
The WrapMode property determines the texture overlaying mode.
Executing the example requires a form and a button named Button1 on it. The root of the C disk contains the Image.jpg file.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
Im: IGxImage;
BrRect: IGxRectF;
Br: IGxBrush;
Begin
Im := GxImage.FromFile("c:\Image.jpg");
BrRect := New GxRectF.Create(0, 0, Im.Width / 2, Im.Height / 2);
Br := New GxTextureBrush.Create(Im, GxWrapMode.Tile, BrRect);
Self.Brush := Br;
End Sub Button1OnClick;
Clicking the button fills the entire form area with the created texture brush. The quarter of the image is used as texture.
See also: