TextureBrush.TextureBrush

TextureBrush(Image)

Initializes a new instance of the TextureBrush class that uses the specified image.

public TextureBrush(Image bitmap)
ParameterTypeDescription
bitmapImageThe Image object with which this TextureBrush object fills interiors.

Exceptions

exceptioncondition
ArgumentNullExceptionThe bitmap is null.

See Also


TextureBrush(Image, WrapMode)

Initializes a new instance of the TextureBrush class that uses the specified image and wrap mode.

public TextureBrush(Image image, WrapMode wrapMode)
ParameterTypeDescription
imageImageThe image.
wrapModeWrapModeA WrapMode enumeration that specifies how this TextureBrush object is tiled.

Exceptions

exceptioncondition
ArgumentNullExceptionThe image is null.

See Also


TextureBrush(Image, WrapMode, RectangleF)

Initializes a new instance of the TextureBrush class that uses the specified image, wrap mode, and bounding rectangle.

public TextureBrush(Image image, WrapMode wrapMode, RectangleF dstRect)
ParameterTypeDescription
imageImageThe image.
wrapModeWrapModeA WrapMode enumeration that specifies how this TextureBrush object is tiled.
dstRectRectangleFA RectangleF structure that represents the bounding rectangle for this TextureBrush object.

Exceptions

exceptioncondition
ArgumentNullExceptionThe image is null.

See Also


TextureBrush(Image, RectangleF)

Initializes a new instance of the TextureBrush class that uses the specified image, and bounding rectangle.

public TextureBrush(Image image, RectangleF dstRect)
ParameterTypeDescription
imageImageThe Image object with which this TextureBrush object fills interiors.
dstRectRectangleFA RectangleF structure that represents the bounding rectangle for this TextureBrush object.

Exceptions

exceptioncondition
ArgumentNullExceptionThe image is null.

See Also


TextureBrush(Image, RectangleF, ImageAttributes)

Initializes a new instance of the TextureBrush class that uses the specified image, bounding rectangle, and image attributes.

public TextureBrush(Image image, RectangleF dstRect, ImageAttributes imageAttr)
ParameterTypeDescription
imageImageThe Image object with which this TextureBrush object fills interiors.
dstRectRectangleFA RectangleF structure that represents the bounding rectangle for this TextureBrush object.
imageAttrImageAttributesAn ImageAttributes object that contains additional information about the image used by this TextureBrush object.

Exceptions

exceptioncondition
ArgumentNullExceptionThe image is null.

See Also