com.aspose.imaging.brushes
Class TextureBrush

java.lang.Object
  extended by com.aspose.imaging.DisposableObject
      extended by com.aspose.imaging.Brush
          extended by com.aspose.imaging.brushes.TransformBrush
              extended by com.aspose.imaging.brushes.TextureBrush

public final class TextureBrush
extends TransformBrush

Each property of the Brushes.TextureBrush class is a Brush object that uses an image to fill the interior of a shape. This class cannot be inherited.


Constructor Summary
TextureBrush(Image image)
           Initializes a new instance of the Brushes.TextureBrush class that uses the specified image.
TextureBrush(Image image, int wrapMode)
           Initializes a new instance of the Brushes.TextureBrush class that uses the specified image and wrap mode.
TextureBrush(Image image, int wrapMode, Rectangle destinationRectangle)
           Initializes a new instance of the 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 Brushes.TextureBrush class that uses the specified image, wrap mode, and bounding rectangle.
TextureBrush(Image image, Rectangle destinationRectangle)
           Initializes a new instance of the Brushes.TextureBrush class that uses the specified image and bounding rectangle.
TextureBrush(Image image, RectangleF destinationRectangle)
           Initializes a new instance of the Brushes.TextureBrush class that uses the specified image and bounding rectangle.
TextureBrush(Image image, RectangleF destinationRectangle, ImageAttributes imageAttributes)
           Initializes a new instance of the 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 Brushes.TextureBrush class that uses the specified image, bounding rectangle, and image attributes.
 
Method Summary
 Image getImage()
           Gets the Image object associated with this Brushes.TextureBrush object.
 ImageAttributes getImageAttributes()
           Gets the ImageAttributes associated with this TextureBrush.
 RectangleF getImageRectangle()
           Gets the Rectangle associated with this TextureBrush.
 
Methods inherited from class com.aspose.imaging.brushes.TransformBrush
getTransform, getWrapMode, isTransformChanged, multiplyTransform, multiplyTransform, resetTransform, rotateTransform, rotateTransform, scaleTransform, scaleTransform, setTransform, setWrapMode, translateTransform, translateTransform
 
Methods inherited from class com.aspose.imaging.Brush
deepClone, getOpacity, setOpacity
 
Methods inherited from class com.aspose.imaging.DisposableObject
dispose, getDisposed, releaseManagedResources, releaseUnmanagedResources, verifyNotDisposed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextureBrush

public TextureBrush(Image image)

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

Parameters:
image - The Image object with which this Brushes.TextureBrush object fills interiors.

TextureBrush

public TextureBrush(Image image,
                    int wrapMode)

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

Parameters:
image - The Image object with which this Brushes.TextureBrush object fills interiors.
wrapMode - A WrapMode enumeration that specifies how this Brushes.TextureBrush object is tiled.

TextureBrush

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

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

Parameters:
image - The Image object with which this Brushes.TextureBrush object fills interiors.
wrapMode - A WrapMode enumeration that specifies how this Brushes.TextureBrush object is tiled.
destinationRectangle - A Rectangle structure that represents the bounding rectangle for this Brushes.TextureBrush object.

TextureBrush

public TextureBrush(Image image,
                    int wrapMode,
                    RectangleF destinationRectangle)

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

Parameters:
image - The Image object with which this Brushes.TextureBrush object fills interiors.
wrapMode - A WrapMode enumeration that specifies how this Brushes.TextureBrush object is tiled.
destinationRectangle - A RectangleF structure that represents the bounding rectangle for this Brushes.TextureBrush object.

TextureBrush

public TextureBrush(Image image,
                    Rectangle destinationRectangle)

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

Parameters:
image - The Image object with which this Brushes.TextureBrush object fills interiors.
destinationRectangle - A Rectangle structure that represents the bounding rectangle for this Brushes.TextureBrush object.

TextureBrush

public TextureBrush(Image image,
                    RectangleF destinationRectangle)

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

Parameters:
image - The Image object with which this Brushes.TextureBrush object fills interiors.
destinationRectangle - A RectangleF structure that represents the bounding rectangle for this Brushes.TextureBrush object.

TextureBrush

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

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

Parameters:
image - The Image object with which this Brushes.TextureBrush object fills interiors.
destinationRectangle - A RectangleF structure that represents the bounding rectangle for this Brushes.TextureBrush object.
imageAttributes - An ImageAttributes object that contains additional information about the image used by this Brushes.TextureBrush object.

TextureBrush

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

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

Parameters:
image - The Image object with which this Brushes.TextureBrush object fills interiors.
destinationRectangle - A Rectangle structure that represents the bounding rectangle for this Brushes.TextureBrush object.
imageAttributes - An ImageAttributes object that contains additional information about the image used by this Brushes.TextureBrush object.
Method Detail

getImage

public Image getImage()

Gets the Image object associated with this Brushes.TextureBrush object.

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


getImageAttributes

public ImageAttributes getImageAttributes()

Gets the ImageAttributes associated with this TextureBrush.

Value: The ImageAttributes.


getImageRectangle

public RectangleF getImageRectangle()

Gets the Rectangle associated with this TextureBrush.

Value: The Rectangle.