Specifies how a texture or gradient is tiled when it is smaller than the area being filled.
Assembly: System.Drawing (in System.Drawing.dll)
|The texture or gradient is not tiled.|
|Tiles the gradient or texture.|
|Reverses the texture or gradient horizontally and then tiles the texture or gradient.|
|Reverses the texture or gradient horizontally and vertically and then tiles the texture or gradient.|
|Reverses the texture or gradient vertically and then tiles the texture or gradient.|
Brushes use this enumeration to determine how shapes are filled. To see examples of the effects the enumeration values have on a tiled image, see How to: Tile a Shape with an Image.
The following code example demonstrates how to obtain a new bitmap using the FromFile method. It also demonstrates a TextureBrush and the enumeration. This example is designed to be used with Windows Forms. Create a form containing a button named Button2. Paste the code into the form and associate the Button2_Click method with the button's Click event.
Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.