Class TextureBrush
Namespace: Aspose.Imaging.Brushes
Assembly: Aspose.Imaging.dll (25.2.0)
Each property of the Aspose.Imaging.Brushes.TextureBrush class is a Aspose.Imaging.Brush object that uses an image to fill the interior of a shape. This class cannot be inherited.
[JsonObject(MemberSerialization.OptIn)]
public sealed class TextureBrush : TransformBrush, IDisposable
Inheritance
object ← DisposableObject ← Brush ← TransformBrush ← TextureBrush
Implements
Inherited Members
TransformBrush.ResetTransform(), TransformBrush.MultiplyTransform(Matrix), TransformBrush.MultiplyTransform(Matrix, MatrixOrder), TransformBrush.TranslateTransform(float, float), TransformBrush.TranslateTransform(float, float, MatrixOrder), TransformBrush.ScaleTransform(float, float), TransformBrush.ScaleTransform(float, float, MatrixOrder), TransformBrush.RotateTransform(float), TransformBrush.RotateTransform(float, MatrixOrder), TransformBrush.WrapMode, TransformBrush.Transform, TransformBrush.IsTransformChanged, Brush.DeepClone(), Brush.Equals(object), Brush.GetHashCode(), Brush.Opacity, DisposableObject.Dispose(), DisposableObject.Disposed, object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
TextureBrush(Image, Rectangle, ImageAttributes)
Initializes a new instance of the Aspose.Imaging.Brushes.TextureBrush class that uses the specified image, bounding rectangle, and image attributes.
public TextureBrush(Image image, Rectangle destinationRectangle, ImageAttributes imageAttributes)
Parameters
image
Image
The Aspose.Imaging.Image object with which this Aspose.Imaging.Brushes.TextureBrush object fills interiors.
destinationRectangle
Rectangle
A Aspose.Imaging.Rectangle structure that represents the bounding rectangle for this Aspose.Imaging.Brushes.TextureBrush object.
imageAttributes
ImageAttributes
An Aspose.Imaging.ImageAttributes object that contains additional information about the image used by this Aspose.Imaging.Brushes.TextureBrush object.
TextureBrush(Image, Rectangle)
Initializes a new instance of the Aspose.Imaging.Brushes.TextureBrush class that uses the specified image and bounding rectangle.
public TextureBrush(Image image, Rectangle destinationRectangle)
Parameters
image
Image
The Aspose.Imaging.Image object with which this Aspose.Imaging.Brushes.TextureBrush object fills interiors.
destinationRectangle
Rectangle
A Aspose.Imaging.Rectangle structure that represents the bounding rectangle for this Aspose.Imaging.Brushes.TextureBrush object.
TextureBrush(Image, RectangleF)
Initializes a new instance of the Aspose.Imaging.Brushes.TextureBrush class that uses the specified image and bounding rectangle.
public TextureBrush(Image image, RectangleF destinationRectangle)
Parameters
image
Image
The Aspose.Imaging.Image object with which this Aspose.Imaging.Brushes.TextureBrush object fills interiors.
destinationRectangle
RectangleF
A Aspose.Imaging.RectangleF structure that represents the bounding rectangle for this Aspose.Imaging.Brushes.TextureBrush object.
TextureBrush(Image, WrapMode, Rectangle)
Initializes a new instance of the Aspose.Imaging.Brushes.TextureBrush class that uses the specified image, wrap mode, and bounding rectangle.
public TextureBrush(Image image, WrapMode wrapMode, Rectangle destinationRectangle)
Parameters
image
Image
The Aspose.Imaging.Image object with which this Aspose.Imaging.Brushes.TextureBrush object fills interiors.
wrapMode
WrapMode
A Aspose.Imaging.WrapMode enumeration that specifies how this Aspose.Imaging.Brushes.TextureBrush object is tiled.
destinationRectangle
Rectangle
A Aspose.Imaging.Rectangle structure that represents the bounding rectangle for this Aspose.Imaging.Brushes.TextureBrush object.
TextureBrush(Image, WrapMode, RectangleF)
Initializes a new instance of the Aspose.Imaging.Brushes.TextureBrush class that uses the specified image, wrap mode, and bounding rectangle.
public TextureBrush(Image image, WrapMode wrapMode, RectangleF destinationRectangle)
Parameters
image
Image
The Aspose.Imaging.Image object with which this Aspose.Imaging.Brushes.TextureBrush object fills interiors.
wrapMode
WrapMode
A Aspose.Imaging.WrapMode enumeration that specifies how this Aspose.Imaging.Brushes.TextureBrush object is tiled.
destinationRectangle
RectangleF
A Aspose.Imaging.RectangleF structure that represents the bounding rectangle for this Aspose.Imaging.Brushes.TextureBrush object.
TextureBrush(Image, WrapMode)
Initializes a new instance of the Aspose.Imaging.Brushes.TextureBrush class that uses the specified image and wrap mode.
public TextureBrush(Image image, WrapMode wrapMode)
Parameters
image
Image
The Aspose.Imaging.Image object with which this Aspose.Imaging.Brushes.TextureBrush object fills interiors.
wrapMode
WrapMode
A Aspose.Imaging.WrapMode enumeration that specifies how this Aspose.Imaging.Brushes.TextureBrush object is tiled.
TextureBrush(Image)
Initializes a new instance of the Aspose.Imaging.Brushes.TextureBrush class that uses the specified image.
public TextureBrush(Image image)
Parameters
image
Image
The Aspose.Imaging.Image object with which this Aspose.Imaging.Brushes.TextureBrush object fills interiors.
TextureBrush(Image, RectangleF, ImageAttributes)
Initializes a new instance of the Aspose.Imaging.Brushes.TextureBrush class that uses the specified image, bounding rectangle, and image attributes.
public TextureBrush(Image image, RectangleF destinationRectangle, ImageAttributes imageAttributes)
Parameters
image
Image
The Aspose.Imaging.Image object with which this Aspose.Imaging.Brushes.TextureBrush object fills interiors.
destinationRectangle
RectangleF
A Aspose.Imaging.RectangleF structure that represents the bounding rectangle for this Aspose.Imaging.Brushes.TextureBrush object.
imageAttributes
ImageAttributes
An Aspose.Imaging.ImageAttributes object that contains additional information about the image used by this Aspose.Imaging.Brushes.TextureBrush object.
Properties
Image
Gets the Aspose.Imaging.Image object associated with this Aspose.Imaging.Brushes.TextureBrush object.
public Image Image { get; }
Property Value
ImageAttributes
Gets the Aspose.Imaging.Brushes.TextureBrush.ImageAttributes associated with this Aspose.Imaging.Brushes.TextureBrush.
public ImageAttributes ImageAttributes { get; }
Property Value
ImageRectangle
Gets the Aspose.Imaging.Rectangle associated with this Aspose.Imaging.Brushes.TextureBrush.
public RectangleF ImageRectangle { get; }
Property Value
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()