Table of Contents

Class TextureBrush

Namespace
Aspose.Imaging.Brushes
Assembly
Aspose.Imaging.dll

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 sealed class TextureBrush : TransformBrush, IDisposable
Inheritance
TextureBrush
Implements
Inherited Members

Constructors

TextureBrush(Image)

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

public TextureBrush(Image image)

Parameters

image Image

The Image object with which this TextureBrush object fills interiors.

TextureBrush(Image, Rectangle)

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

public TextureBrush(Image image, Rectangle destinationRectangle)

Parameters

image Image

The Image object with which this TextureBrush object fills interiors.

destinationRectangle Rectangle

A Rectangle structure that represents the bounding rectangle for this TextureBrush object.

TextureBrush(Image, Rectangle, ImageAttributes)

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

public TextureBrush(Image image, Rectangle destinationRectangle, ImageAttributes imageAttributes)

Parameters

image Image

The Image object with which this TextureBrush object fills interiors.

destinationRectangle Rectangle

A Rectangle structure that represents the bounding rectangle for this TextureBrush object.

imageAttributes ImageAttributes

An ImageAttributes object that contains additional information about the image used by this TextureBrush object.

TextureBrush(Image, RectangleF)

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

public TextureBrush(Image image, RectangleF destinationRectangle)

Parameters

image Image

The Image object with which this TextureBrush object fills interiors.

destinationRectangle RectangleF

A RectangleF structure that represents the bounding rectangle for this TextureBrush object.

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 destinationRectangle, ImageAttributes imageAttributes)

Parameters

image Image

The Image object with which this TextureBrush object fills interiors.

destinationRectangle RectangleF

A RectangleF structure that represents the bounding rectangle for this TextureBrush object.

imageAttributes ImageAttributes

An ImageAttributes object that contains additional information about the image used by this TextureBrush object.

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)

Parameters

image Image

The Image object with which this TextureBrush object fills interiors.

wrapMode WrapMode

A WrapMode enumeration that specifies how this TextureBrush object is tiled.

TextureBrush(Image, WrapMode, Rectangle)

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

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

Parameters

image Image

The Image object with which this TextureBrush object fills interiors.

wrapMode WrapMode

A WrapMode enumeration that specifies how this TextureBrush object is tiled.

destinationRectangle Rectangle

A Rectangle structure that represents the bounding rectangle for this TextureBrush object.

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 destinationRectangle)

Parameters

image Image

The Image object with which this TextureBrush object fills interiors.

wrapMode WrapMode

A WrapMode enumeration that specifies how this TextureBrush object is tiled.

destinationRectangle RectangleF

A RectangleF structure that represents the bounding rectangle for this TextureBrush object.

Properties

Image

Gets the Image object associated with this TextureBrush object.

public Image Image { get; }

Property Value

Image

An Image object that represents the image with which this TextureBrush object fills shapes.

ImageAttributes

Gets the ImageAttributes associated with this TextureBrush.

public ImageAttributes ImageAttributes { get; }

Property Value

ImageAttributes

The ImageAttributes.

ImageRectangle

Gets the Rectangle associated with this TextureBrush.

public RectangleF ImageRectangle { get; }

Property Value

RectangleF

The Rectangle.

Methods

ReleaseManagedResources()

Releases the managed resources. Make sure no unmanaged resources are released here, since they may have been already released.

protected override void ReleaseManagedResources()