public final class TextureBrush extends TransformBrush
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.
| Constructor and Description |
|---|
TextureBrush(Image image)
Initializes a new instance of the
Aspose.Imaging.Brushes.TextureBrush class that uses the specified image. |
TextureBrush(Image image,
int wrapMode)
Initializes a new instance of the
Aspose.Imaging.Brushes.TextureBrush class that uses the specified image and wrap mode. |
TextureBrush(Image image,
int wrapMode,
Rectangle destinationRectangle)
Initializes a new instance of the
Aspose.Imaging.Brushes.TextureBrush class that uses the specified image, wrap mode, and bounding rectangle. |
TextureBrush(Image image,
int wrapMode,
RectangleF destinationRectangle)
Initializes a new instance of the
Aspose.Imaging.Brushes.TextureBrush class that uses the specified image, wrap mode, and bounding rectangle. |
TextureBrush(Image image,
Rectangle destinationRectangle)
Initializes a new instance of the
Aspose.Imaging.Brushes.TextureBrush class that uses the specified image and bounding rectangle. |
TextureBrush(Image image,
RectangleF destinationRectangle)
Initializes a new instance of the
Aspose.Imaging.Brushes.TextureBrush class that uses the specified image and bounding rectangle. |
TextureBrush(Image image,
RectangleF destinationRectangle,
ImageAttributes imageAttributes)
Initializes a new instance of the
Aspose.Imaging.Brushes.TextureBrush class that uses the specified image, bounding rectangle, and image attributes. |
TextureBrush(Image image,
Rectangle destinationRectangle,
ImageAttributes imageAttributes)
Initializes a new instance of the
Aspose.Imaging.Brushes.TextureBrush class that uses the specified image, bounding rectangle, and image attributes. |
| Modifier and Type | Method and Description |
|---|---|
Image |
getImage()
Gets the
com.aspose.imaging.Image object associated with this com.aspose.imaging.brushes.TextureBrush object. |
ImageAttributes |
getImageAttributes()
Gets the
ImageAttributes associated with this TextureBrush. |
RectangleF |
getImageRectangle()
Gets the
Rectangle associated with this TextureBrush. |
getTransform, getWrapMode, isTransformChanged, multiplyTransform, multiplyTransform, resetTransform, rotateTransform, rotateTransform, scaleTransform, scaleTransform, setTransform, setWrapMode, translateTransform, translateTransformdeepClone, getOpacity, setOpacityclose, dispose, getDisposedpublic TextureBrush(Image image)
Initializes a new instance of the Aspose.Imaging.Brushes.TextureBrush class that uses the specified image.
image - The Aspose.Imaging.Image object with which this Aspose.Imaging.Brushes.TextureBrush object fills interiors.public TextureBrush(Image image, int wrapMode)
Initializes a new instance of the Aspose.Imaging.Brushes.TextureBrush class that uses the specified image and wrap mode.
image - The Aspose.Imaging.Image object with which this Aspose.Imaging.Brushes.TextureBrush object fills interiors.wrapMode - A Aspose.Imaging.WrapMode enumeration that specifies how this Aspose.Imaging.Brushes.TextureBrush object is tiled.public TextureBrush(Image image, int wrapMode, RectangleF destinationRectangle)
Initializes a new instance of the Aspose.Imaging.Brushes.TextureBrush class that uses the specified image, wrap mode, and bounding rectangle.
image - The Aspose.Imaging.Image object with which this Aspose.Imaging.Brushes.TextureBrush object fills interiors.wrapMode - A Aspose.Imaging.WrapMode enumeration that specifies how this Aspose.Imaging.Brushes.TextureBrush object is tiled.destinationRectangle - A Aspose.Imaging.RectangleF structure that represents the bounding rectangle for this Aspose.Imaging.Brushes.TextureBrush object.public TextureBrush(Image image, int wrapMode, Rectangle destinationRectangle)
Initializes a new instance of the Aspose.Imaging.Brushes.TextureBrush class that uses the specified image, wrap mode, and bounding rectangle.
image - The Aspose.Imaging.Image object with which this Aspose.Imaging.Brushes.TextureBrush object fills interiors.wrapMode - A Aspose.Imaging.WrapMode enumeration that specifies how this Aspose.Imaging.Brushes.TextureBrush object is tiled.destinationRectangle - A Aspose.Imaging.Rectangle structure that represents the bounding rectangle for this Aspose.Imaging.Brushes.TextureBrush object.public TextureBrush(Image image, RectangleF destinationRectangle)
Initializes a new instance of the Aspose.Imaging.Brushes.TextureBrush class that uses the specified image and bounding rectangle.
image - The Aspose.Imaging.Image object with which this Aspose.Imaging.Brushes.TextureBrush object fills interiors.destinationRectangle - A Aspose.Imaging.RectangleF structure that represents the bounding rectangle for this Aspose.Imaging.Brushes.TextureBrush object.public TextureBrush(Image image, RectangleF destinationRectangle, ImageAttributes imageAttributes)
Initializes a new instance of the Aspose.Imaging.Brushes.TextureBrush class that uses the specified image, bounding rectangle, and image attributes.
image - The Aspose.Imaging.Image object with which this Aspose.Imaging.Brushes.TextureBrush object fills interiors.destinationRectangle - A Aspose.Imaging.RectangleF structure that represents the bounding rectangle for this Aspose.Imaging.Brushes.TextureBrush object.imageAttributes - An com.aspose.imaging.ImageAttributes object that contains additional information about the image used by this Aspose.Imaging.Brushes.TextureBrush object.public TextureBrush(Image image, Rectangle destinationRectangle)
Initializes a new instance of the Aspose.Imaging.Brushes.TextureBrush class that uses the specified image and bounding rectangle.
image - The Aspose.Imaging.Image object with which this Aspose.Imaging.Brushes.TextureBrush object fills interiors.destinationRectangle - A Aspose.Imaging.Rectangle structure that represents the bounding rectangle for this Aspose.Imaging.Brushes.TextureBrush object.public TextureBrush(Image image, Rectangle destinationRectangle, ImageAttributes imageAttributes)
Initializes a new instance of the Aspose.Imaging.Brushes.TextureBrush class that uses the specified image, bounding rectangle, and image attributes.
image - The Aspose.Imaging.Image object with which this Aspose.Imaging.Brushes.TextureBrush object fills interiors.destinationRectangle - A Aspose.Imaging.Rectangle structure that represents the bounding rectangle for this Aspose.Imaging.Brushes.TextureBrush object.imageAttributes - An com.aspose.imaging.ImageAttributes object that contains additional information about the image used by this Aspose.Imaging.Brushes.TextureBrush object.public Image getImage()
Gets the com.aspose.imaging.Image object associated with this com.aspose.imaging.brushes.TextureBrush object.
com.aspose.imaging.Image object that represents the image with which this com.aspose.imaging.brushes.TextureBrush object fills shapes.public ImageAttributes getImageAttributes()
Gets the ImageAttributes associated with this TextureBrush.
ImageAttributes.public RectangleF getImageRectangle()
Gets the Rectangle associated with this TextureBrush.
Rectangle.Copyright (c) 2008-2022 Aspose Pty Ltd. All Rights Reserved.