Packages

 

com.aspose.psd.brushes

Class TextureBrush



  • 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 Detail

      • TextureBrush

        public TextureBrush(Image image)

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

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

        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:
        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.
      • TextureBrush

        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:
        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.
      • TextureBrush

        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.

        Parameters:
        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.
      • TextureBrush

        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.

        Parameters:
        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.
      • TextureBrush

        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:
        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.psd.ImageAttributes object that contains additional information about the image used by this Aspose.Imaging.Brushes.TextureBrush object.
      • TextureBrush

        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.

        Parameters:
        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.
      • TextureBrush

        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.

        Parameters:
        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.psd.ImageAttributes object that contains additional information about the image used by this Aspose.Imaging.Brushes.TextureBrush object.
    • Method Detail

      • getImage

        public Image getImage()

        Gets the com.aspose.psd.Image object associated with this com.aspose.psd.brushes.TextureBrush object.

        Value: An com.aspose.psd.Image object that represents the image with which this com.aspose.psd.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.