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

ConstructorDescription
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

MethodDescription
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:

ParameterTypeDescription
imageImageThe 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:

ParameterTypeDescription
imageImageThe Aspose.Imaging.Image object with which this Aspose.Imaging.Brushes.TextureBrush object fills interiors.
wrapModeintA 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:

ParameterTypeDescription
imageImageThe Image object with which this TextureBrush object fills interiors.
destinationRectangleRectangleA Rectangle structure that represents the bounding rectangle for this TextureBrush object.
imageAttributesImageAttributesAn 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:

ParameterTypeDescription
imageImageThe Image object with which this TextureBrush object fills interiors.
destinationRectangleRectangleA 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:

ParameterTypeDescription
imageImageThe Image object with which this TextureBrush object fills interiors.
destinationRectangleRectangleFA 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:

ParameterTypeDescription
imageImageThe Image object with which this TextureBrush object fills interiors.
wrapModeintA WrapMode enumeration that specifies how this TextureBrush object is tiled.
destinationRectangleRectangleA 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:

ParameterTypeDescription
imageImageThe Aspose.Imaging.Image object with which this Aspose.Imaging.Brushes.TextureBrush object fills interiors.
wrapModeintA Aspose.Imaging.WrapMode enumeration that specifies how this Aspose.Imaging.Brushes.TextureBrush object is tiled.
destinationRectangleRectangleFA 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:

ParameterTypeDescription
imageImageThe Aspose.Imaging.Image object with which this Aspose.Imaging.Brushes.TextureBrush object fills interiors.
destinationRectangleRectangleFA Aspose.Imaging.RectangleF structure that represents the bounding rectangle for this Aspose.Imaging.Brushes.TextureBrush object.
imageAttributesImageAttributesAn 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