<PackageReference Include="System.Drawing.Common" Version="9.0.6" />

TextureBrush

public sealed class TextureBrush : Brush
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 Image Image { get; }

Gets the Image object associated with this TextureBrush object.

public Matrix Transform { get; set; }

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

public WrapMode WrapMode { get; set; }

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

public TextureBrush(Image bitmap)

Initializes a new TextureBrush object that uses the specified image.

public TextureBrush(Image image, WrapMode wrapMode)

Initializes a new TextureBrush object that uses the specified image and wrap mode.

public TextureBrush(Image image, WrapMode wrapMode, Rectangle dstRect)

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

public TextureBrush(Image image, WrapMode wrapMode, RectangleF dstRect)

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

public TextureBrush(Image image, Rectangle dstRect)

Initializes a new TextureBrush object that uses the specified image and bounding rectangle.

public TextureBrush(Image image, Rectangle dstRect, ImageAttributes imageAttr)

Initializes a new TextureBrush object that uses the specified image, bounding rectangle, and image attributes.

public TextureBrush(Image image, RectangleF dstRect)

Initializes a new TextureBrush object that uses the specified image and bounding rectangle.

public TextureBrush(Image image, RectangleF dstRect, ImageAttributes imageAttr)

Initializes a new TextureBrush object that uses the specified image, bounding rectangle, and image attributes.

public void MultiplyTransform(Matrix 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.

public void MultiplyTransform(Matrix matrix, MatrixOrder order)

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

public void ResetTransform()

Resets the Transform property of this TextureBrush object to identity.

public void RotateTransform(float angle)

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

public void RotateTransform(float angle, MatrixOrder order)

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

public void ScaleTransform(float sx, float sy)

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

public void ScaleTransform(float sx, float sy, MatrixOrder order)

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

public void TranslateTransform(float dx, float dy)

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

public void TranslateTransform(float dx, float dy, MatrixOrder order)

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