IGxTextureBrush.WrapMode

Syntax

WrapMode: GxWrapMode;

Description

The WrapMode property determines the texture overlaying mode.

Example

Executing the example requires a form with a button named Button1. The Image.jpg file is in the C root directory.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    Im: IGxImage;
    BrRect: IGxRectF;
    Br: IGxBrush;
Begin
    Im := GxImage.FromFile("c:\Image.jpg");
    BrRect := New GxRectF.Create(00, Im.Width / 2, Im.Height / 2);
    Br := New GxTextureBrush.Create(Im, GxWrapMode.Tile, BrRect);
    Self.Brush := Br;
End Sub Button1OnClick; 

After executing the example clicking the button fills the whole area of the form with the created texture brush. The quarter of the image is used as texture.

See also:

IGxTextureBrush