SetWrapMode Method (WrapMode, Color, Boolean)
Collapse the table of content
Expand the table of content

ImageAttributes.SetWrapMode Method (WrapMode, Color, Boolean)

 

Sets the wrap mode and color 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.

Namespace:   System.Drawing.Imaging
Assembly:  System.Drawing (in System.Drawing.dll)

member SetWrapMode : 
        mode:WrapMode *
        color:Color *
        clamp:bool -> unit

Parameters

mode
Type: System.Drawing.Drawing2D.WrapMode

An element of WrapMode that specifies how repeated copies of an image are used to tile an area.

color
Type: System.Drawing.Color

A color object that specifies the color of pixels outside of a rendered image. This color is visible if the mode parameter is set to Clamp and the source rectangle passed to DrawImage is larger than the image itself.

clamp
Type: System.Boolean

This parameter has no effect. Set it to false.

This method does not return a value.

For a code example, see the SetWrapMode(WrapMode) method.

.NET Framework
Available since 1.1
Return to top
Show:
© 2016 Microsoft