TextureBrush
Inheritance: java.lang.Object, com.aspose.imaging.DisposableObject, com.aspose.imaging.Brush, com.aspose.imaging.brushes.TransformBrush
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.
Constructors
| Constructor | 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, Rectangle destinationRectangle, ImageAttributes imageAttributes) | Initializes a new instance of the TextureBrush class that uses the specified image, bounding rectangle, and image attributes. |
| TextureBrush(Image image, Rectangle destinationRectangle) | Initializes a new instance of the TextureBrush class that uses the specified image and bounding rectangle. |
| TextureBrush(Image image, RectangleF destinationRectangle) | Initializes a new instance of the TextureBrush class that uses the specified image and bounding rectangle. |
| TextureBrush(Image image, int wrapMode, Rectangle destinationRectangle) | Initializes a new instance of the 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, 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. |
Methods
| Method | Description |
|---|---|
| getImage() | Gets the com.aspose.imaging.Image object associated with this com.aspose.imaging.brushes.TextureBrush object. |
| getImageAttributes() | Gets the ImageAttributes associated with this TextureBrush. |
| getImageRectangle() | Gets the Rectangle associated with this TextureBrush. |
TextureBrush(Image image)
public TextureBrush(Image image)
Initializes a new instance of the Aspose.Imaging.Brushes.TextureBrush class that uses the specified image.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| image | Image | The Aspose.Imaging.Image object with which this Aspose.Imaging.Brushes.TextureBrush object fills interiors. |
TextureBrush(Image image, int wrapMode)
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.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| image | Image | The Aspose.Imaging.Image object with which this Aspose.Imaging.Brushes.TextureBrush object fills interiors. |
| wrapMode | int | A Aspose.Imaging.WrapMode enumeration that specifies how this Aspose.Imaging.Brushes.TextureBrush object is tiled. |
TextureBrush(Image image, Rectangle destinationRectangle, ImageAttributes imageAttributes)
public TextureBrush(Image image, Rectangle destinationRectangle, ImageAttributes imageAttributes)
Initializes a new instance of the TextureBrush class that uses the specified image, bounding rectangle, and image attributes.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| 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 image, Rectangle destinationRectangle)
public TextureBrush(Image image, Rectangle destinationRectangle)
Initializes a new instance of the TextureBrush class that uses the specified image and bounding rectangle.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| 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 image, RectangleF destinationRectangle)
public TextureBrush(Image image, RectangleF destinationRectangle)
Initializes a new instance of the TextureBrush class that uses the specified image and bounding rectangle.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| 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 image, int wrapMode, Rectangle destinationRectangle)
public TextureBrush(Image image, int wrapMode, Rectangle destinationRectangle)
Initializes a new instance of the TextureBrush class that uses the specified image, wrap mode, and bounding rectangle.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| image | Image | The Image object with which this TextureBrush object fills interiors. |
| wrapMode | int | 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 image, int wrapMode, RectangleF destinationRectangle)
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.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| image | Image | The Aspose.Imaging.Image object with which this Aspose.Imaging.Brushes.TextureBrush object fills interiors. |
| wrapMode | int | 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 image, RectangleF destinationRectangle, ImageAttributes imageAttributes)
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.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| 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 com.aspose.imaging.ImageAttributes object that contains additional information about the image used by this Aspose.Imaging.Brushes.TextureBrush object. |
getImage()
public Image getImage()
Gets the com.aspose.imaging.Image object associated with this com.aspose.imaging.brushes.TextureBrush object.
Value: An com.aspose.imaging.Image object that represents the image with which this com.aspose.imaging.brushes.TextureBrush object fills shapes.
Returns: Image
getImageAttributes()
public ImageAttributes getImageAttributes()
Gets the ImageAttributes associated with this TextureBrush.
Value: The ImageAttributes.
Returns: ImageAttributes
getImageRectangle()
public RectangleF getImageRectangle()
Gets the Rectangle associated with this TextureBrush.
Value: The Rectangle.
Returns: RectangleF