Skip to main content

WrapMode

Namespace: System.Drawing.Drawing2D

Assembly: System.Drawing.Managed (4.0.0.0)

Specifies how a texture or gradient is tiled when it is smaller than the area being filled.

public enum WrapMode : Enum

Fields

NameDescription
ClampThe texture or gradient is not tiled.
TileTiles the gradient or texture.
TileFlipXReverses the texture or gradient horizontally and then tiles the texture or gradient.
TileFlipXYReverses the texture or gradient horizontally and vertically and then tiles the texture or gradient.
TileFlipYReverses the texture or gradient vertically and then tiles the texture or gradient.

Used By

NameDescription
TextureBrush.WrapModeGets or sets a WrapMode enumeration that indicates the wrap mode for this TextureBrush object.
ImageAttributes.SetWrapModeSets the wrap mode that is used to decide how to tile a texture across a shape, or at shape boundaries. A texture is tiled across a shape to fill it in when the texture is smaller than the shape it is filling.
LinearGradientBrush.WrapModeGets or sets a WrapMode enumeration that indicates the wrap mode for this LinearGradientBrush.
PathGradientBrush.WrapModeGets or sets a WrapMode enumeration that indicates the wrap mode for this PathGradientBrush.