Skip to main content

TextureBrush

Namespace: System.Drawing

Assembly: System.Drawing.Managed (4.0.0.0)

Each property of the TextureBrush class is a Brush object that uses an image to fill the interior of a shape. This class cannot be inherited.

public class TextureBrush : Brush

Constructors

Instance member TextureBrush(bitmap)

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

NameTypeDescription
bitmapImageThe Image object with which this TextureBrush object fills interiors.

Instance member TextureBrush(image, dstRect)

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

NameTypeDescription
imageImageThe Image object with which this TextureBrush object fills interiors.
dstRectRectangleFA RectangleF structure that represents the bounding rectangle for this TextureBrush object.

Instance member TextureBrush(image, dstRect)

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

NameTypeDescription
imageImageThe Image object with which this TextureBrush object fills interiors.
dstRectRectangleA Rectangle structure that represents the bounding rectangle for this TextureBrush object.

Instance member TextureBrush(image, wrapMode)

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

NameTypeDescription
imageImageThe Image object with which this TextureBrush object fills interiors.
wrapModeWrapModeA WrapMode enumeration that specifies how this TextureBrush object is tiled.

Instance member TextureBrush(image, wrapMode, dstRect)

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

NameTypeDescription
imageImageThe Image object with which this TextureBrush object fills interiors.
wrapModeWrapModeA WrapMode enumeration that specifies how this TextureBrush object is tiled.
dstRectRectangleA Rectangle structure that represents the bounding rectangle for this TextureBrush object.

Instance member TextureBrush(image, wrapMode, dstRect)

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

NameTypeDescription
imageImageThe Image object with which this TextureBrush object fills interiors.
wrapModeWrapModeA WrapMode enumeration that specifies how this TextureBrush object is tiled.
dstRectRectangleFA RectangleF structure that represents the bounding rectangle for this TextureBrush object.

Instance member TextureBrush(image, dstRect, imageAttr)

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

NameTypeDescription
imageImageThe Image object with which this TextureBrush object fills interiors.
dstRectRectangleA Rectangle 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.

Instance member TextureBrush(image, dstRect, imageAttr)

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

NameTypeDescription
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.

Properties

Instance member Image

Image: Gets the Image object associated with this TextureBrush object.

Instance member Transform

Matrix: Gets or sets a copy of the Matrix object that defines a local geometric transformation for the image associated with this TextureBrush object.

Instance member WrapMode

WrapMode: Gets or sets a WrapMode enumeration that indicates the wrap mode for this TextureBrush object.

Methods

Instance member Clone()

Creates an exact copy of this TextureBrush object.

Returns: Object. The TextureBrush object this method creates, cast as an Object object.

Instance member MultiplyTransform(matrix)

Multiplies the Matrix object that represents the local geometric transformation of this TextureBrush object by the specified Matrix object by prepending the specified Matrix object.

ParameterTypeDescription
matrixMatrixThe Matrix object by which to multiply the geometric transformation.

Instance member MultiplyTransform(matrix, order)

Multiplies the Matrix object that represents the local geometric transformation of this TextureBrush object by the specified Matrix object in the specified order.

ParameterTypeDescription
matrixMatrixThe Matrix object by which to multiply the geometric transformation.
orderMatrixOrderA MatrixOrder enumeration that specifies the order in which to multiply the two matrices.

Instance member ResetTransform()

Resets the property of this TextureBrush object to identity.

Instance member RotateTransform(angle)

Rotates the local geometric transformation of this TextureBrush object by the specified amount. This method prepends the rotation to the transformation.

ParameterTypeDescription
angleSingleThe angle of rotation.

Instance member RotateTransform(angle, order)

Rotates the local geometric transformation of this TextureBrush object by the specified amount in the specified order.

ParameterTypeDescription
angleSingleThe angle of rotation.
orderMatrixOrderA MatrixOrder enumeration that specifies whether to append or prepend the rotation matrix.

Instance member ScaleTransform(sx, sy)

Scales the local geometric transformation of this TextureBrush object by the specified amounts. This method prepends the scaling matrix to the transformation.

ParameterTypeDescription
sxSingleThe amount by which to scale the transformation in the x direction.
sySingleThe amount by which to scale the transformation in the y direction.

Instance member ScaleTransform(sx, sy, order)

Scales the local geometric transformation of this TextureBrush object by the specified amounts in the specified order.

ParameterTypeDescription
sxSingleThe amount by which to scale the transformation in the x direction.
sySingleThe amount by which to scale the transformation in the y direction.
orderMatrixOrderA MatrixOrder enumeration that specifies whether to append or prepend the scaling matrix.

Instance member TranslateTransform(dx, dy)

Translates the local geometric transformation of this TextureBrush object by the specified dimensions. This method prepends the translation to the transformation.

ParameterTypeDescription
dxSingleThe dimension by which to translate the transformation in the x direction.
dySingleThe dimension by which to translate the transformation in the y direction.

Instance member TranslateTransform(dx, dy, order)

Translates the local geometric transformation of this TextureBrush object by the specified dimensions in the specified order.

ParameterTypeDescription
dxSingleThe dimension by which to translate the transformation in the x direction.
dySingleThe dimension by which to translate the transformation in the y direction.
orderMatrixOrderThe order (prepend or append) in which to apply the translation.